/* VS Express Logistik GmbH - Custom Styling */

/* Global Styles */
html {
    overflow-y: scroll; /* Always show vertical scrollbar to prevent layout shifts */
}

body {
    background: linear-gradient(135deg, #251f4b 0%, #9b155f 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clickable Card Animations */
.clickable-card {
    cursor: pointer;
    transform: scale(1);
}

.clickable-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px 0 rgba(31, 38, 135, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.clickable-card:active {
    transform: scale(0.98);
}

/* Dashboard statistics animation */
@keyframes statCardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-card {
    animation: statCardAppear 0.6s ease-out forwards;
}

.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.4s; }

/* Navigation Styling */
.navbar-dark {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 2rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Form Styling */
.form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

.form-select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 10px;
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

.form-select option {
    background: #2c3e50;
    color: white;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Input Group Styling */
.input-group-text {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 10px 0 0 10px;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(45deg, #9b155f, #251f4b);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 21, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 21, 95, 0.4);
    background: linear-gradient(45deg, #251f4b, #9b155f);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.btn-outline-warning {
    border: 1px solid #ffc107;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
}

.btn-outline-warning:hover {
    background: #ffc107;
    color: #000;
}

.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
}

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

.btn-outline-info {
    border: 1px solid #17a2b8;
    color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
    border-radius: 8px;
}

.btn-outline-info:hover {
    background: #17a2b8;
    color: white;
}

.btn-outline-success {
    border: 1px solid #28a745;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
}

.btn-outline-success:hover {
    background: #28a745;
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Table Styling */
.table-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
}

.table-dark th {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 15px 12px;
}

.table-dark td {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-warning {
    background: rgba(255, 193, 7, 0.2) !important;
}

.table-info {
    background: rgba(23, 162, 184, 0.2) !important;
}

/* Badge Styling */
.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-primary {
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
}

.badge.bg-info {
    background: linear-gradient(45deg, #17a2b8, #138496) !important;
}

.badge.bg-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800) !important;
    color: #000 !important;
}

.badge.bg-danger {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
}

.badge.bg-success {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important;
}

.badge.bg-secondary {
    background: linear-gradient(45deg, #6c757d, #545b62) !important;
}

.badge.bg-dark {
    background: linear-gradient(45deg, #343a40, #23272b) !important;
}

.badge.bg-light {
    background: linear-gradient(45deg, #f8f9fa, #e2e6ea) !important;
    color: #495057 !important;
}

/* Enhanced Service Table Styling */
.service-table {
    background: transparent !important;
    border: none !important;
    table-layout: fixed;
    width: 100%;
    min-width: 1200px; /* Increased width for better content fitting */
}

.service-table thead.gradient-header {
    background: linear-gradient(135deg, rgba(37, 31, 75, 0.8), rgba(155, 21, 95, 0.8)) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-table thead th {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    padding: 0.8rem 0.5rem;
    border: none !important;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-table tbody tr.service-row {
    background: linear-gradient(135deg, rgba(37, 31, 75, 0.3), rgba(155, 21, 95, 0.3)) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.service-table tbody tr.service-row:hover {
    background: linear-gradient(135deg, rgba(37, 31, 75, 0.5), rgba(155, 21, 95, 0.5)) !important;
    box-shadow: 0 2px 8px rgba(155, 21, 95, 0.2);
    /* Removed transform to prevent layout shifts */
}

.service-table tbody td {
    background: transparent !important;
    padding: 0.8rem 0.5rem;
    border: none !important;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Special styling for Servicestelle column to align icon with text */
.service-table tbody td .location-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}

.service-table tbody td .location-text i {
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.service-table tbody td .location-text span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column width optimization for better content fitting */
.service-table th:nth-child(1), .service-table td:nth-child(1) { width: 8%; }  /* Datum */
.service-table th:nth-child(2), .service-table td:nth-child(2) { width: 12%; } /* Fahrzeug */
.service-table th:nth-child(3), .service-table td:nth-child(3) { width: 10%; } /* Service */
.service-table th:nth-child(4), .service-table td:nth-child(4) { width: 8%; }  /* Service KM */
.service-table th:nth-child(5), .service-table td:nth-child(5) { width: 8%; }  /* Nächster */
.service-table th:nth-child(6), .service-table td:nth-child(6) { width: 15%; } /* Servicestelle */
.service-table th:nth-child(7), .service-table td:nth-child(7) { width: 10%; } /* Bereich */
.service-table th:nth-child(8), .service-table td:nth-child(8) { width: 10%; } /* Erstellt von */
.service-table th:nth-child(9), .service-table td:nth-child(9) { width: 12%; } /* Erstellt am */
.service-table th:nth-child(10), .service-table td:nth-child(10) { width: 7%; } /* Aktionen */

.service-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Dashboard Services Table - Optimized for smaller container */
.dashboard-services-table {
    min-width: unset !important; /* Remove minimum width constraint */
    width: 100% !important;
    table-layout: fixed !important; /* Force equal column distribution */
}

.dashboard-services-table thead th {
    padding: 0.6rem 0.3rem !important;
    font-size: 0.75rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dashboard-services-table tbody td {
    padding: 0.6rem 0.3rem !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: none !important; /* Remove max-width constraint */
}

/* Specific column widths for dashboard table */
.dashboard-services-table th:nth-child(1),
.dashboard-services-table td:nth-child(1) {
    width: 20% !important; /* Datum */
}

.dashboard-services-table th:nth-child(2),
.dashboard-services-table td:nth-child(2) {
    width: 30% !important; /* Fahrzeug */
}

.dashboard-services-table th:nth-child(3),
.dashboard-services-table td:nth-child(3) {
    width: 25% !important; /* Service */
}

.dashboard-services-table th:nth-child(4),
.dashboard-services-table td:nth-child(4) {
    width: 25% !important; /* Erstellt von */
}

/* Serviceverlauf Table Column Widths - Optimized for better fitting */
.service-table:not(.dashboard-services-table) th:nth-child(1),
.service-table:not(.dashboard-services-table) td:nth-child(1) {
    width: 8% !important; /* Datum */
}

.service-table:not(.dashboard-services-table) th:nth-child(2),
.service-table:not(.dashboard-services-table) td:nth-child(2) {
    width: 11% !important; /* Fahrzeug */
}

.service-table:not(.dashboard-services-table) th:nth-child(3),
.service-table:not(.dashboard-services-table) td:nth-child(3) {
    width: 8% !important; /* Service */
}

.service-table:not(.dashboard-services-table) th:nth-child(4),
.service-table:not(.dashboard-services-table) td:nth-child(4) {
    width: 9% !important; /* Service KM */
}

.service-table:not(.dashboard-services-table) th:nth-child(5),
.service-table:not(.dashboard-services-table) td:nth-child(5) {
    width: 9% !important; /* Nächster */
}

.service-table:not(.dashboard-services-table) th:nth-child(6),
.service-table:not(.dashboard-services-table) td:nth-child(6) {
    width: 12% !important; /* Servicestelle */
}

.service-table:not(.dashboard-services-table) th:nth-child(7),
.service-table:not(.dashboard-services-table) td:nth-child(7) {
    width: 9% !important; /* Bereich */
}

.service-table:not(.dashboard-services-table) th:nth-child(8),
.service-table:not(.dashboard-services-table) td:nth-child(8) {
    width: 9% !important; /* Erstellt von */
}

.service-table:not(.dashboard-services-table) th:nth-child(9),
.service-table:not(.dashboard-services-table) td:nth-child(9) {
    width: 18% !important; /* Erstellt am */
}

.service-table:not(.dashboard-services-table) th:nth-child(10),
.service-table:not(.dashboard-services-table) td:nth-child(10) {
    width: 7% !important; /* Aktionen */
}

/* Action buttons styling for better visibility */
.service-table .btn-outline-danger:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.service-table .btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.service-table .btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: white !important;
}

/* Fahrzeugliste Table Column Widths - Optimized for vehicle data */
.fahrzeugliste-table {
    min-width: 1200px !important; /* Optimized table width to fit all columns */
}

.fahrzeugliste-table th:nth-child(1),
.fahrzeugliste-table td:nth-child(1) {
    width: 8% !important; /* Fahrzeugnummer */
    text-align: center;
}

.fahrzeugliste-table th:nth-child(2),
.fahrzeugliste-table td:nth-child(2) {
    width: 11% !important; /* Kennzeichen */
    text-align: center;
}

.fahrzeugliste-table th:nth-child(3),
.fahrzeugliste-table td:nth-child(3) {
    width: 16% !important; /* Marke/Modell - Readable but optimized */
    text-align: left;
    font-size: 0.85rem;
    word-wrap: break-word;
}

.fahrzeugliste-table th:nth-child(4),
.fahrzeugliste-table td:nth-child(4) {
    width: 9% !important; /* Erstzulassungsdatum */
    text-align: center;
}

.fahrzeugliste-table th:nth-child(5),
.fahrzeugliste-table td:nth-child(5) {
    width: 13% !important; /* Eigentümer */
    text-align: center;
    font-size: 0.8rem;
}

.fahrzeugliste-table th:nth-child(6),
.fahrzeugliste-table td:nth-child(6) {
    width: 9% !important; /* Aktuelle TÜV */
    text-align: center;
}

.fahrzeugliste-table th:nth-child(7),
.fahrzeugliste-table td:nth-child(7) {
    width: 11% !important; /* Nächste TÜV - More space for badge */
    text-align: center;
}

.fahrzeugliste-table th:nth-child(8),
.fahrzeugliste-table td:nth-child(8) {
    width: 7% !important; /* Aktual KM - Compact space for 6 digits */
    text-align: center !important;
    font-weight: bold;
}

.fahrzeugliste-table th:nth-child(9),
.fahrzeugliste-table td:nth-child(9) {
    width: 50px !important; /* Services - Minimal width for 2-digit numbers */
    text-align: center;
    min-width: 50px;
    max-width: 50px;
    padding: 0.4rem 0.2rem !important;
}

.fahrzeugliste-table th:nth-child(10),
.fahrzeugliste-table td:nth-child(10) {
    width: 13% !important; /* Aktionen - More space from compact Services */
    text-align: center;
}

/* TÜV badge styling for Fahrzeugliste */
.fahrzeugliste-table .tuev-date-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
}

.fahrzeugliste-table .tuev-expired {
    background-color: #dc3545;
    color: white;
}

.fahrzeugliste-table .tuev-warning {
    background-color: #ffc107;
    color: #000;
}

.fahrzeugliste-table .tuev-safe {
    background-color: #28a745;
    color: white;
}

/* Action buttons styling for Fahrzeugliste */
.fahrzeugliste-table .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin: 0 1px;
}

.fahrzeugliste-table .btn-outline-warning,
.fahrzeugliste-table .btn-outline-danger {
    min-width: 30px;
}

/* User management table styling - removed current user highlighting */

/* Prevent horizontal scrollbar in table container */
.table-responsive {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

.service-table th:nth-child(1), .service-table td:nth-child(1) { width: 8%; }   /* Datum */
.service-table th:nth-child(2), .service-table td:nth-child(2) { width: 12%; }  /* Fahrzeug */
.service-table th:nth-child(3), .service-table td:nth-child(3) { width: 10%; }  /* Service */
.service-table th:nth-child(4), .service-table td:nth-child(4) { width: 9%; }   /* Service KM */
.service-table th:nth-child(5), .service-table td:nth-child(5) { width: 9%; }   /* Nächster bei */
.service-table th:nth-child(6), .service-table td:nth-child(6) { width: 12%; }  /* Servicestelle */
.service-table th:nth-child(7), .service-table td:nth-child(7) { width: 10%; }  /* Bereich */
.service-table th:nth-child(8), .service-table td:nth-child(8) { width: 8%; }   /* Erstellt von */
.service-table th:nth-child(9), .service-table td:nth-child(9) { width: 12%; }  /* Erstellt am */
.service-table th:nth-child(10), .service-table td:nth-child(10) { width: 10%; } /* Aktionen */

/* Enhanced Form Select Styling */
.form-select {
    background: rgba(37, 31, 75, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1050;
    position: relative;
}

.form-select:focus {
    background: rgba(37, 31, 75, 0.5) !important;
    border-color: rgba(155, 21, 95, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(155, 21, 95, 0.25) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    outline: none;
}

.form-select option {
    background: rgba(37, 31, 75, 0.95) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 8px 12px;
    border: none;
}

.form-select option:hover {
    background: rgba(155, 21, 95, 0.7) !important;
    color: white !important;
}

.form-select option:checked {
    background: rgba(155, 21, 95, 0.8) !important;
    color: white !important;
}

/* Fix dropdown positioning and scroll issues */
.glass-card .form-select {
    position: relative;
    z-index: 100;
}

.glass-card {
    overflow: visible;
    z-index: 50;
}

/* Quick Action Buttons Styling */
.quick-action-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 25px !important;
    padding: 12px 20px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.quick-action-btn:hover {
    background: rgba(155, 21, 95, 0.4) !important;
    border-color: rgba(155, 21, 95, 0.6) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 21, 95, 0.3);
}

/* Specific hover colors for first 3 buttons */
.quick-action-btn:nth-child(1):hover {
    background: rgba(66, 165, 245, 0.4) !important;
    border-color: rgba(66, 165, 245, 0.6) !important;
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.3);
}

.quick-action-btn:nth-child(2):hover {
    background: rgba(102, 187, 106, 0.4) !important;
    border-color: rgba(102, 187, 106, 0.6) !important;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.3);
}

.quick-action-btn:nth-child(3):hover {
    background: rgba(171, 71, 188, 0.4) !important;
    border-color: rgba(171, 71, 188, 0.6) !important;
    box-shadow: 0 4px 15px rgba(171, 71, 188, 0.3);
}

.quick-action-export:hover {
    background: rgba(40, 167, 69, 0.4) !important;
    border-color: rgba(40, 167, 69, 0.6) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.quick-action-admin:hover {
    background: rgba(255, 193, 7, 0.4) !important;
    border-color: rgba(255, 193, 7, 0.6) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* User Dropdown Styling */
.dropdown-menu {
    background: linear-gradient(135deg, rgba(37, 31, 75, 0.9), rgba(155, 21, 95, 0.9)) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.4) !important;
    padding: 10px !important;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover {
    background: rgba(155, 21, 95, 0.4) !important;
    color: white !important;
}

.dropdown-item-text {
    color: rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
    font-size: 0.85rem !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
    margin: 8px 0 !important;
}

/* TÜV Date Badge Styling */
.tuev-date-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.tuev-expired {
    background: rgba(220, 53, 69, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(220, 53, 69, 1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.tuev-warning {
    background: rgba(255, 193, 7, 0.8) !important;
    color: #212529 !important;
    border: 1px solid rgba(255, 193, 7, 1);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.tuev-safe {
    background: rgba(40, 167, 69, 0.8) !important;
    color: white !important;
    border: 1px solid rgba(40, 167, 69, 1);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* TÜV Alert Card Styling */
.tuev-alert-card {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05)) !important;
}

.tuev-alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tuev-alert-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tuev-alert-item:last-child {
    border-bottom: none;
}

/* Alert Styling */
.alert {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
    color: #fff;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    border-color: rgba(23, 162, 184, 0.3);
    color: #fff;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #fff;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
    color: #fff;
}

/* Modal Styling */
.modal-content {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Styling */
footer {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Colors */
.text-white {
    color: #ffffff !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Login Page Specific Styling */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner-border-light {
    border-color: rgba(255, 255, 255, 0.3);
    border-left-color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    .navbar, .btn, .modal {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .form-control {
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Service form section styles */
.service-section {
    margin-bottom: 1.5rem;
}

.service-section .glass-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.service-section h4 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Radio button groups for inspection */
.btn-check:checked + .btn-outline-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

.btn-check:checked + .btn-outline-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #000 !important;
}

.btn-check:checked + .btn-outline-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* Enhanced form controls */
.form-control[readonly] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Parcelware Table Styling */
.parcelware-table {
    min-width: 1100px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.parcelware-table th:nth-child(1) { width: 9%; }  /* Datum */
.parcelware-table th:nth-child(2) { width: 12%; } /* Fahrzeug */
.parcelware-table th:nth-child(3) { width: 8%; }  /* Tour Nr. */
.parcelware-table th:nth-child(4) { width: 7%; }  /* Startzeit */
.parcelware-table th:nth-child(5) { width: 7%; }  /* Endzeit */
.parcelware-table th:nth-child(6) { width: 9%; }  /* Start KM */
.parcelware-table th:nth-child(7) { width: 9%; }  /* End KM */
.parcelware-table th:nth-child(8) { width: 8%; }  /* Gefahren */
.parcelware-table th:nth-child(9) { width: 12%; } /* Unterschrift */
.parcelware-table th:nth-child(10) { width: 10%; } /* Erstellt von */
.parcelware-table th:nth-child(11) { width: 9%; }  /* Aktionen */

.parcelware-table td:nth-child(1),
.parcelware-table td:nth-child(2),
.parcelware-table td:nth-child(3),
.parcelware-table td:nth-child(4),
.parcelware-table td:nth-child(5),
.parcelware-table td:nth-child(6),
.parcelware-table td:nth-child(7),
.parcelware-table td:nth-child(8),
.parcelware-table td:nth-child(9),
.parcelware-table td:nth-child(10),
.parcelware-table td:nth-child(11) {
    text-align: center;
    vertical-align: middle;
}

/* Glass dropdown styling for KM history */
.glass-dropdown {
    background: rgba(37, 31, 75, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
}

.glass-dropdown .dropdown-header {
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    padding: 4px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dropdown .dropdown-item-text {
    color: #e0e0e0;
    font-size: 13px;
    padding: 2px 12px;
    display: block;
    white-space: nowrap;
}

.glass-dropdown .dropdown-item-text.text-muted {
    color: #999;
    font-style: italic;
}

/* Large glass dropdown for detailed KM history */
.glass-dropdown-large {
    background: rgba(37, 31, 75, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 12px 0;
    min-width: 350px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.glass-dropdown-large .dropdown-header {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(155, 21, 95, 0.3);
}

.dropdown-item-content {
    padding: 8px 16px;
}

.km-history-entry {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.km-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.km-info strong {
    color: #fff;
    font-size: 16px;
}

.km-info small {
    color: #ccc;
    font-size: 12px;
}

.history-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    font-size: 12px;
    color: #e0e0e0;
}

.history-details div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-details i {
    width: 12px;
    color: #9b155f;
}

.signature-preview {
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

.glass-dropdown-large .dropdown-item {
    color: #e0e0e0;
    padding: 8px 16px;
    font-size: 14px;
}

.glass-dropdown-large .dropdown-item:hover {
    background: rgba(155, 21, 95, 0.2);
    color: #fff;
}

.glass-dropdown-large .dropdown-item i {
    width: 16px;
    margin-right: 8px;
}

.glass-dropdown-large .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Expandable history row styling */
.history-row {
    background: rgba(37, 31, 75, 0.4) !important;
    border-top: 2px solid rgba(155, 21, 95, 0.5);
}

.history-content {
    padding: 20px !important;
    background: linear-gradient(135deg, rgba(37, 31, 75, 0.6), rgba(155, 21, 95, 0.3));
    border-radius: 8px;
    margin: 8px;
}

.km-history-container {
    max-width: 100%;
}

.history-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.history-entries {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-entry {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.history-main {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 16px;
    align-items: center;
}

.km-change {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.km-change strong {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.km-progression {
    color: #ccc;
    font-size: 12px;
    margin-top: 2px;
}

.history-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
}

.history-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e0e0e0;
}

.history-detail i {
    width: 14px;
    color: #9b155f;
    font-size: 12px;
}

.history-signature {
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-history {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 20px 0;
}

/* Service due warning styling */
.service-due-warning {
    background: rgba(220, 53, 69, 0.2) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.service-due-warning:hover {
    background: rgba(220, 53, 69, 0.3) !important;
}

/* Service details expandable rows */
.service-details-row {
    background: rgba(255, 255, 255, 0.05) !important;
    border-top: 1px solid rgba(155, 21, 95, 0.2) !important;
}

.service-details-content {
    padding: 20px 25px !important;
    background: linear-gradient(135deg, rgba(37, 31, 75, 0.4) 0%, rgba(155, 21, 95, 0.3) 100%) !important;
    border-radius: 10px;
    margin: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-details-container {
    animation: slideDown 0.3s ease-out;
}

.service-detail-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-detail-item strong {
    color: #fff;
    min-width: 140px;
    font-weight: 600;
}

.service-detail-item span {
    color: #e0e0e0;
    flex: 1;
}

.service-detail-item i {
    color: #9b155f;
    width: 16px;
    font-size: 14px;
}

.inspection-details, .tire-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-meta {
    background: rgba(155, 21, 95, 0.2);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(155, 21, 95, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .history-main {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    
    .history-info {
        grid-template-columns: 1fr;
    }
}
