/* Zentrale CSS-Datei für das Layout - Version 1.03 */

/* === Allgemeine Styles === */
body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
}

/* Formularelemente */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Fehlernachricht */
.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* === Login-spezifische Styles === */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-image {
    display: block;
    margin: 0 auto 15px;
    width: 75%;
    height: auto;
}

.login-container h2 {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 10px;
}

/* === Navigation v1 -spezifische Styles === */
.nav-header-bar {
    position: sticky; /* Sticky macht die Topbar feststehend */
    top: 0;
    width: 100%;
    height: 60px;
    background-color: #F4F8FE;
    color: #020B18;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1050; /* Sicherstellen, dass die Topbar über anderen Elementen bleibt */
}

.nav-header-title {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.nav-header .toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
}

.nav-header .logout-btn {
    color: #fff;
    background-color: #dc3545;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    margin-right: 5px;
}

.nav-header .logout-btn:hover {
    background-color: #c82333;
}

/* Sidebar */
.nav-sidebar {
    width: 240px;
    background-color: #F4F8FE;
    min-height: 100vh;
    padding-top: 20px;
    transition: all 0.3s ease-in-out;
}

.nav-sidebar.collapsed {
    transform: translateX(-100%);
}

.nav-group {
    margin-bottom: 20px;
}

.nav-group h6 {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 15px;
    margin-bottom: 0;
    background-color: #e9ecef;
}

.nav-link {
    color: #000;
    padding: 8px 15px;
    font-size: 0.9rem;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    background-color: #e9ecef;
}

.nav-link.active {
    background-color: #dce9fc;
    font-weight: bold;
}

/* === Navigation v2 -spezifische Styles === */



/* === Content Bereich === */
.content {
    margin-top: 60px;
    padding: 15px;
    flex-grow: 1;
}

/* === Fahrzeugverwaltung-spezifische Styles === */
.vehicle-container {
    max-width: 1200px;
    margin: 20px auto;
}

.vehicle-form-group {
    margin-bottom: 15px;
}

.vehicle-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.vehicle-table th,
.vehicle-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.vehicle-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

