/* BODY */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

body.default-page {
    background: linear-gradient(135deg, #001E62, #0056B3);
    color: white;
    min-height: 100vh;
    display: block;  /* Block statt flex für normale Seiten */
    padding-top: 0px; /* Platz für die Navbar */
}

body.login-page {
    background: linear-gradient(135deg, #001e62, #005b99);
}

body.default-page {
    background-color: #ffffff;  /* Helles Grau für dezente Seiten */
}

/* Login */


/* NAVBAR*/
.navbar {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten für 3D-Effekt */
    background-color: rgba(255, 255, 255, 0.123); /* Halbtransparente blaue Hintergrundfarbe */
    border-radius: 25px; /* Abgerundete Kanten */
    padding: 10px 30px; /* Innenabstand */
    margin: 20px auto; /* Abstand zu den Seitenrändern */
    max-width: 70%; /* Begrenzung der Breite auf 80% */
}
.navbar-brand {
    font-size: 22px;
}


.navbar-nav {
    font-size: 20px;
    color: #001e62;
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px 15px;
    border-radius: 10px;
}

.navbar-nav {
    justify-content: center;
    gap: 30px;  /* Abstand zwischen den Links */
}

.nav-link {
    font-size: 18px;
    color: white; /* Weiße Schrift für Kontrast */
    padding: 8px 15px;
    transition: all 0.3s ease-in-out;
    border-radius: 15px !important; /* Leicht abgerundete Links */
}
.nav-link:hover {
    font-weight: 600;  /* Text wird fett */
    transform: scale(1.05);  /* Leichtes Vergrößern */
    color: white;

}

.navbar-toggler {
    border: none; /* Entfernt den Rahmen um den Button */
    background-color: transparent; /* Keine Hintergrundfarbe */
    outline: none; /* Entfernt den Standard-Fokus-Rahmen */
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1); /* Helle Farbe des Icons passend zu dunklem Hintergrund */
}

.logo-responsive {
    width: 100px;  /* Einheitliche Breite */
    height: auto;
}

.btn-danger {
    background-color: transparent;
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
    border-radius: 25px;
    padding: 8px 16px;
    transition:  0.3s ease-in-out;

}

.btn-danger:hover {
    background-color: rgb(148, 0, 15);
    border-color: rgb(148, 0, 15);
    color: white;
    transition:  0.3s ease-in-out;

}

.navbar .btn-outline-danger {
    white-space: nowrap; /* Verhindert, dass der Button sich umbricht */
    margin-left: auto; /* Schiebt den Button nach rechts */

    background-color: #C82333;
    border-color: #C82333;
    border-radius: 50px;
    padding: 10px 20px;
    color: #ffffff;
}

.btn-outline-danger:hover {
    background-color: rgb(148, 0, 15);
    border-color: rgb(148, 0, 15);
    transition:  0.3s ease-in-out;
    color: white;
}

/* LOGIN */
.login-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    min-height: 80vh; /* Höhe des Containers auf 80% der Bildschirmhöhe setzen */
    justify-content: center; /*Richtet die Kind-Elemente horizontal innerhalb des Containers aus*/
    align-items: center; /*Richtet die Kind-Elemente vertikal innerhalb des Containers aus*/
}

.login-card {
    background-color: white;
    border-radius: 25px;
    padding: 60px 40px;  /* Mehr Padding für eine luftigere Ansicht */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-title {
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 600;
    color: #001e62;  /* BMW Blau */
}

.input-group {
    display: flex;
    align-items: center;
    background-color: #f1f3f6;
    border-radius: 25px;
    margin-bottom: 25px; /* Mehr Abstand zwischen den Input-Gruppen */
    padding: 10px 15px;
    border: none; /* Kein Rahmen */

}

.input-group i {
    margin-right: 10px;
    color: #b3b3b3;
}

input[type="text"],
input[type="password"] {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    padding: 5px;
}

/* Icon Styling */
.input-group i {
    margin-right: 10px; /* Abstand zwischen Icon und Eingabe */
    color: #b3b3b3; /* Dezente Icon-Farbe */
    font-size: 18px; /* Größe des Icons */
}

/* Fokuszustand der gesamten Input-Gruppe */
.input-group:focus-within {
    border: none; /* Kein Rand bei Fokus */
    box-shadow: none; /* Kein Schatten */
}

/* Entferne den Fokusrahmen des Browsers */
input[type="text"]:focus,
input[type="password"]:focus {
    outline: none; /* Entfernt den blauen Fokusrahmen */
    border: none; /* Kein Rand */
    box-shadow: none; /* Entfernt jegliche Schatten */
    background: transparent;
}

.show-password {
    cursor: pointer;
}

.login-btn {
    background-color: #001e62; /* BMW Blau */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    width: 50%;
    transition: background-color 0.3s;
    
}
.login-btn:active {
    transform: scale(0.98);
}

.login-btn:hover {
    background-color: #003399; /* Dunkleres Blau */
}


/* STARTSEITE */
.startseite {
    padding: 30px 15px;
}

.welcome-text {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.option-card {
    width: 100%;
    max-width: 400px;  /* Begrenzte Maximalbreite */
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 25px;
    cursor: pointer;
    color: #001E62;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: white;

}

.option-card:hover {
    transform: scale(1.03);
    background-color: #f1f1f1;
}

.option-icon {
    font-size: 40px;
    color: #001e62; /* BMW Blau */
    margin-bottom: 10px;
}

.option-title {
    font-size: 24px;
    font-weight: bold;
}


/* SCANNER */
.custom-button {
    background-color: white;  /* Hintergrund in weiß */
    color: #001e62;  /* Schrift in BMW-Blau */
    border: none;  /* Kein Rand */
    border-radius: 25px;  /* Abgerundete Ecken */
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);  /* Leichter Schatten */
}

.custom-button:hover {
    transform: scale(1.03);  /* Einheitliches Hover-Verhalten */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);  /* Schatten beim Hover */
    
}

.custom-button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-button:focus {
    outline: none;
    box-shadow: none;
}

#scanner {
    width: 100%;
    height: 100%;
    position: relative;
    display: none; /* Standardmäßig unsichtbar */
}

.modal-body #scanner {
    display: block; /* Nur innerhalb des Modals sichtbar */
}

/* Fahrzeugformular Container */
.form-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: white; /* Hintergrund in Weiß für Kontrast */
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
    margin-bottom: 70px;

}

.form-container h1 {
    font-size: 32px;
    font-weight: bold;
    color: #001e62; /* Blau passend zum Layout */
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    justify-content: space-between;  /* Abstand zwischen Dropdown und Button */
    align-items: center;  /* Vertikale Ausrichtung der Elemente */
}

.form-container input[type="text"],
.form-container select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 18px;
    color: #333;
    
}

.form-container input[readonly] {
    background-color: #f9f9f9; /* Leichtes Grau für schreibgeschützte Felder */
    color: #555;
}

.form-container input::placeholder {
    color: #999;
}

.form-container label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #001e62;
}

.form-container button[type="submit"] {
    background-color: #001e62; /* Dunkleres Blau */
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    width: 100%;
    
    transition: background-color 0.3s ease-in-out;
}

.form-container button[type="submit"]:hover {
    background-color: #001e62;
}

/* Styling für den "Standort erfassen"-Button */
.form-container button #find-location {
    background-color: #001e62; 
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 16px; 
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    width: auto;  /* Automatische Breite */
}

/* Hover-Effekt für den "Standort erfassen"-Button */
.form-container button #find-location:hover {
    background-color: #001e62;
}

.location-container {
    display: flex;
    justify-content: flex-start;  /* Zeilenweise anordnen, Button und Dropdown nebeneinander */
    align-items: start;  /* Vertikale Ausrichtung der Elemente */
    gap: 10px;  /* Optional: fügt einen Abstand zwischen Dropdown und Button hinzu */
}

.backButton {
    background-color: #5D5D5D; /* BMW Mineral Gray */
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border: 2px solid #5D5D5D; /* Passender Grauton für den Rand */
    border-radius: 15px !important;
    transition: background-color 0.3s ease-in-out;

}

.backButton:hover {
    background-color: #4E4E50; /* BMW Space Gray */
    color: white;
    border: 2px solid #4E4E50; /* Passender Grauton für den Rand */
    transition: background-color 0.3s ease-in-out;

}

#error-message {
    background-color: #f8d7da; /* Heller grüner Hintergrund */
    color: #C82333; /* Dunkelgrüne Schrift */
    border: 1px solid #f5c6cb; /* Heller grüner Rand */
    padding: 10px;
    border-radius: 15px !important;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* Für Erfolgsmeldungen */
.message-success {
    background-color: white; /* Heller grüner Hintergrund */
    color: #28a745; /* Dunkelgrüne Schrift */
    border: 1px solid #28a745; /* Heller grüner Rand */
    padding: 10px;
    border-radius: 15px !important;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;

}

/* Für Fehlermeldungen */
.message-error {
    background-color: #f8d7da; /* Heller roter Hintergrund */
    color: #721c24; /* Dunkelrote Schrift */
    border: 1px solid #f5c6cb; /* Heller roter Rand */
    padding: 10px;
    border-radius: 15px !important;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}


#location-error {
    color: red;  /* Rote Schriftfarbe */
    font-weight: bold;  /* Fettdruck */
    margin-top: 15px;  /* Abstand nach oben */
    font-size: 16px;  /* Schriftgröße */
    text-align: center;  /* Zentrieren des Textes */
}

/* Standort */
#status {
    font-size: 16px;  /* Schriftgröße */
    padding: 15px;  /* Innenabstand */
    border-radius: 8px;  /* Abgerundete Ecken */
    margin-top: 20px;  /* Abstand zum vorherigen Element */
    text-align: center;  /* Text zentrieren */
    max-width: 100%;  /* Maximale Breite */
    width: auto;
    color: #ffffff;  /* Weiße Schriftfarbe */
}


#status.error {
    background-color: #f44336;  /* Roter Hintergrund für Fehler */
    color: #ffffff;  /* Weiße Schriftfarbe */

}

#status.info {
    background-color: #001e62;  /* Blauer Hintergrund für Info */
    color: #ffffff;  /* Weiße Schriftfarbe */

}

/* Karte */
#map {
    margin-bottom: 30px;
    height: 300px;
    width: 100%;
    border-radius: 8px;
    
}

/* Styling für das Dropdown */
/* Container für das Fahrzeugstatus Dropdown */
.vehicle-state-container {
    margin-bottom: 20px;  /* Abstand nach unten */
}

/* Styling für das Label des Fahrzeugstatus */
.vehicle-state-label {
    font-weight: bold;
    color: #333; /* Textfarbe für das Label */
}

/* Styling für das Dropdown des Fahrzeugstatus */
.vehicle-state-dropdown {
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 15px;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}*/

/* Fokus Effekt */
.vehicle-state-dropdown:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
}

/* Optional: Dropdown Pfeil anpassen */
.vehicle-state-dropdown::-ms-expand {
    display: none;
}



/* Styling für Nachrichten */
.alert {
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Erfolgsnachricht */
.alert-success {
    background-color: white;
    border-color: #28a745;
    color: #28a745;
}

/* Fehlermeldung */
.alert-danger {
    background-color: white;
    border-color: #dc3545;
    color: #dc3545;
}

/* Anzeige-Effekt für Nachrichten */
.alert.show {
    opacity: 1;
}

/* Erfolgsmeldung Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden; /* Standardmäßig ausgeblendet */
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}

/* Erfolgsmeldung sichtbar */
.success-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.success-message {
    background-color: white;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #28a745;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.success-message h1 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.success-message p {
    font-size: 1rem;
}

/* 📱💻 Tablet-Ansicht (bis 1024px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-link {
        font-size: 16px;
        padding: 10px;
    }

    .btn-outline-danger {
        font-size: 16px;
        padding: 8px 12px;
    }
}

/* Für Smartphones (maximal 600px Breite) */
@media (max-width: 600px) {

    body {
        padding-left: 15px; /* Abstand zum linken Rand */
        padding-right: 15px; /* Abstand zum rechten Rand */
    }
    .navbar {
        padding: 10px;
    }


    .navbar-toggler {
        border: none; /* Entfernt den Standardrand des Buttons */
    }

    .navbar-nav {
        text-align: center; /* Zentriert die Navigation */
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px;
    }

    .btn-outline-danger {
        font-size: 14px;
        padding: 5px 10px;
    }

    .option-card {
        max-width: 100%;  /* Karten nutzen die volle Breite */
    }

    .welcome-text {
        font-size: 1.5rem;
    }

    .btn-danger {
        padding: 8px 16px;
    }

    .login-container {
        min-height: 60vh; /* Weniger Höhe auf kleinen Bildschirmen */
    }
    .login-card {
        padding: 30px;
    }

    .input-group {
        padding: 8px 10px;
    }

    .login-btn {
        padding: 12px;
        font-size: 16px;
    }

    .login-title {
        font-size: 20px;
    }

    .form-container {
        padding: 20px; /* Etwas Abstand vom Rand */
        margin: 0 10px; /* Sorgt dafür, dass das Formular nicht zu nah am Rand ist */
        margin-bottom: 30px;  /* Etwas mehr Abstand nach unten */
    }

    .form-container h1 {
        font-size: 26px;
    }

    .form-container input[type="text"],
    .form-container select {
        font-size: 16px; /* Kleinere Schriftgröße für Eingabefelder */
        padding: 10px;  /* Weniger Padding in Eingabefeldern */
    }
    
    .form-container button[type="submit"] {
        font-size: 18px;
        padding: 12px;
    }
}



/* Für Tablets (maximal 900px Breite) */
@media (max-width: 900px) {
    .navbar-nav {
        gap: 10px;
    }

    .option-card {
        max-width: 90%;
    }

    .login-btn {
        width: 100%;  /* Button füllt die Breite */
    }

    .welcome-text {
        font-size: 1.8rem;
    }

    .login-container {
        padding: 10px;
    }

    .login-card {
        padding: 35px;
    }

    .form-container {
        padding: 30px;
        margin-bottom: 30px; 
    }

    .form-container h1 {
        font-size: 28px;
    }

    .form-container input[type="text"],
    .form-container select {
        font-size: 17px;
    }

    .form-container button[type="submit"] {
        font-size: 18px;
    }
}
