/* Time Attack Championship 2025 - Racing Theme CSS */

/* Color Variables */
:root {
    --racing-red: #ff1e2e;
    --racing-black: #000000;
    --racing-white: #ffffff;
    --racing-gray: #1a1a1a;
    --racing-light-gray: #f8f9fa;
    --racing-dark-gray: #1a1a1a;
}

/* Global Border Radius Fix - Uniform rounded corners */
.card, .card-header, .card-footer, .card-body,
.btn, .badge, .alert, .form-control, .form-select,
.table, .progress, .round-card, .compact-header,
.modal-content, .modal-header, .modal-footer,
.round-card-mobile, .round-card-mobile .card,
.round-card-mobile .card-header, .round-card-mobile .card-body {
    border-radius: 8px !important;
}

/* Special cases for specific elements */
.card-header, .round-card .card-header, .round-card-mobile .card-header {
    border-radius: 8px 8px 0 0 !important;
}

.card-footer, .round-card .card-footer, .round-card-mobile .card-footer {
    border-radius: 0 0 8px 8px !important;
}

.btn-sm, .btn-xs {
    border-radius: 6px !important;
}

.badge {
    border-radius: 6px !important;
}

/* ========================================
   SIDEBAR HAMBURGER MENU
   ======================================== */

/* Top Navigation Bar */
.top-navbar {
    background: var(--racing-black);
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--racing-red);
}

.navbar-brand {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-brand:hover {
    color: var(--racing-red);
}

.logo-contrast {
    filter: brightness(1.2);
}

/* Hamburger Menu Button */
.hamburger-menu {
    background: var(--racing-red);
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 30, 46, 0.3);
}

.hamburger-menu:hover {
    background: #e11b2a;
    transform: scale(1.05);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Menu */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: var(--racing-black);
    color: white;
    z-index: 1001;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid var(--racing-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title {
    color: var(--racing-red);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: var(--racing-gray);
    color: var(--racing-red);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 1.1rem;
}

.sidebar-link:hover {
    background: var(--racing-gray);
    border-left-color: var(--racing-red);
    color: var(--racing-red);
}

.sidebar-link.active {
    background: var(--racing-gray);
    border-left-color: var(--racing-red);
    color: var(--racing-red);
}

.sidebar-divider {
    height: 1px;
    background: var(--racing-gray);
    margin: 20px 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--racing-gray);
    margin-top: auto;
}

.sidebar-search {
    margin-bottom: 20px;
}

.sidebar-search .form-control {
    background: var(--racing-gray);
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
}

.sidebar-search .form-control:focus {
    background: var(--racing-gray);
    border-color: var(--racing-red);
    box-shadow: 0 0 0 0.2rem rgba(255, 30, 46, 0.25);
    color: white;
}

.sidebar-language {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-language .dropdown-toggle {
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    border: none;
}

.sidebar-language .dropdown-toggle:hover {
    color: var(--racing-red) !important;
}

.sidebar-language .dropdown-toggle::after {
    color: white !important;
}

.sidebar-language .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(220, 53, 69, 0.3);
    min-width: 150px;
}

.sidebar-language .dropdown-item {
    color: white !important;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.sidebar-language .dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: white !important;
}

/* Ensure language text is visible */
#currentLanguage {
    color: white !important;
}

/* Inline language selector for sidebar */
.sidebar-language-inline {
    padding: 0;
}

.sidebar-language-inline .dropdown-toggle {
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.sidebar-language-inline .dropdown-toggle:hover {
    color: var(--racing-red) !important;
}

.sidebar-language-inline .dropdown-menu {
    background-color: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(220, 53, 69, 0.3);
    min-width: 150px;
}

.sidebar-language-inline .dropdown-item {
    color: white !important;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.sidebar-language-inline .dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: white !important;
}

.sidebar-language a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
}

.sidebar-language a:hover {
    color: var(--racing-red);
}

/* Sidebar Search Styling */
.sidebar-search {
    margin-bottom: 20px;
    position: relative;
}

.sidebar-search .form-control {
    background: var(--racing-gray);
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px; /* Prevents zoom on mobile */
}

.sidebar-search .form-control:focus {
    background: var(--racing-gray);
    border-color: var(--racing-red);
    box-shadow: 0 0 0 0.2rem rgba(255, 30, 46, 0.25);
    color: white;
}

.sidebar-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.search-suggestions {
    background: var(--racing-black) !important;
    border: 1px solid var(--racing-red) !important;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99999 !important;
    position: fixed !important;
    margin-top: 2px;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.search-suggestions .dropdown-item {
    color: white !important;
    padding: 10px 15px;
    border-bottom: 1px solid var(--racing-gray);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestions .dropdown-item:hover {
    background: var(--racing-red) !important;
    color: white !important;
}

.search-suggestions .dropdown-item:last-child {
    border-bottom: none;
}

/* Main Content Adjustment */
.main-content {
    padding: 20px;
    margin-left: 0;
    margin-top: 80px;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 80px);
}

/* Body Background */
body {
    background: url('/static/racing-background.png') center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Footer */
.footer {
    background: #000000 !important;
    background-color: #000000 !important;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 3px solid var(--racing-red);
}

.footer .container,
.footer .row,
.footer .col-lg-6,
.footer .col-12 {
    background: transparent !important;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--racing-red);
}

/* Visitor Stats in Footer */
.visitor-stats-compact {
    padding: 15px 0;
}

.visitor-stat-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
}

.visitor-stat-item .badge {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    background: var(--racing-red) !important;
    color: white !important;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    display: block;
}

.visitor-stat-item small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info a:hover {
    color: var(--racing-red) !important;
}

/* Homepage Search Bar */
.search-container-homepage {
    position: relative;
    margin-bottom: 1rem;
}

.search-container-homepage .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-container-homepage .input-group-text {
    border-radius: 0;
    background: var(--racing-black) !important;
    color: white !important;
    padding: 0.75rem 1rem;
}

.search-container-homepage .form-control {
    border-radius: 0;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--racing-black);
    font-size: 16px !important;
}

.search-container-homepage .form-control:focus {
    box-shadow: none;
    border-color: var(--racing-red);
    outline: none;
}

.search-container-homepage .search-suggestions {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #1a1a1a !important;
    border-radius: 0 0 15px 15px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    border: 2px solid #ff1e2e !important;
    margin-top: 0 !important;
    min-height: 50px !important;
}

.search-container-homepage .search-suggestions .dropdown-item {
    color: white !important;
    padding: 10px 15px;
    border-bottom: 1px solid var(--racing-gray);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-container-homepage .search-suggestions .dropdown-item:hover {
    background: var(--racing-red) !important;
    color: white !important;
}

.search-container-homepage .search-suggestions .dropdown-item:last-child {
    border-bottom: none;
}

/* Updated Card Styles with Black Theme */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: var(--racing-black);
    color: white;
    border-bottom: 2px solid var(--racing-red);
    font-weight: 600;
}

.bg-dark {
    background: var(--racing-black) !important;
}

.text-dark {
    color: var(--racing-black) !important;
}

/* Enhanced Round Cards */
.round-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.round-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.round-card.uploaded {
    border-left: 5px solid var(--racing-red);
}

.round-card.uploaded .card-header {
    background: linear-gradient(135deg, var(--racing-red), #e11b2a);
    color: white;
}

.round-card.not-uploaded .card-header {
    background: linear-gradient(135deg, var(--racing-black), #1a1a1a);
    color: white;
}

/* Enhanced Buttons */
.btn-racing {
    background: var(--racing-red);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 30, 46, 0.3);
}

.btn-racing:hover {
    background: #e11b2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 30, 46, 0.4);
    color: white;
}

.btn-racing-red {
    background: var(--racing-red);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-racing-red:hover {
    background: #e11b2a;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-racing {
    border: 2px solid var(--racing-red);
    color: var(--racing-red);
    background: transparent;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-racing:hover {
    background: var(--racing-red);
    color: white;
    transform: translateY(-2px);
}

/* Enhanced Badges */
.badge {
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
}

.bg-success {
    background: var(--racing-green) !important;
}

.bg-danger {
    background: var(--racing-red) !important;
}

.bg-warning {
    background: var(--racing-yellow) !important;
}

.bg-info {
    background: var(--racing-blue) !important;
}

.bg-secondary {
    background: var(--racing-gray) !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hamburger-menu {
        width: 40px;
        height: 40px;
    }
    
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        padding: 15px;
        margin-top: 70px;
    }
    
    .footer {
        padding: 20px 0;
    }
    

}

/* Dropdown z-index fix for Bootstrap dropdowns */
.dropdown-menu {
    z-index: 1050 !important;
}

.card {
    overflow: visible !important;
}

.card-body {
    overflow: visible !important;
}

/* Ensure dropdowns appear above all content */
.dropdown {
    position: relative;
    z-index: 1000;
}

.dropdown.show .dropdown-menu {
    z-index: 1050 !important;
    display: block;
}

/* Year Selector - Clean and Simple */
.year-selector-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 30, 46, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.year-selector-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.year-selector-label {
    font-weight: 600;
    color: var(--racing-black);
    margin: 0;
    white-space: nowrap;
    font-size: 1rem;
}

.year-selector-dropdown {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: var(--racing-black);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.year-selector-dropdown:focus {
    border-color: var(--racing-red);
    box-shadow: 0 0 0 0.2rem rgba(255, 30, 46, 0.25);
    outline: none;
}

.year-selector-dropdown:hover {
    border-color: var(--racing-red);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .year-selector-card {
        padding: 1rem;
    }
    
    .year-selector-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .year-selector-label {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .year-selector-dropdown {
        min-width: auto;
        width: 100%;
        text-align: center;
    }
}

/* Force round cards to have consistent corners - ULTIMATE FIX */
.round-card {
    border-radius: 8px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.round-card .card-header {
    border-radius: 8px 8px 0 0 !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border: none !important;
}

.round-card .card-body {
    border-radius: 0 0 8px 8px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border: none !important;
}

/* Mobile round cards fix */
.round-card-mobile .round-card {
    border-radius: 8px !important;
    overflow: hidden !important;
    border: none !important;
}

.round-card-mobile .round-card .card-header {
    border-radius: 8px 8px 0 0 !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border: none !important;
}

.round-card-mobile .round-card .card-body {
    border-radius: 0 0 8px 8px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border: none !important;
}

/* Base Styles - Optimized for performance */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(248, 249, 250, 0.85), rgba(248, 249, 250, 0.88)), url('../racing-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed from fixed to scroll for better performance */
    background-repeat: no-repeat;
    color: var(--racing-black);
    min-height: 100vh;
    /* Performance optimizations */
    will-change: auto;
    backface-visibility: hidden;
}

/* Racing Theme Colors */
.text-racing-red {
    color: var(--racing-red) !important;
}

.bg-racing-red {
    background-color: var(--racing-red) !important;
}

.bg-racing-black {
    background-color: rgba(33, 37, 41, 0.98) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Removed backdrop-filter for better performance */
}

.border-racing-red {
    border-color: var(--racing-red) !important;
}

/* Logo Contrast Effect */
.logo-contrast {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    border-radius: 8px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    
}

.logo-contrast:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    
}

/* Custom Dropdown Menu - No Popper dependency */
.custom-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    min-width: 180px !important;
    padding: 0.5rem 0 !important;
    margin: 0.125rem 0 0 !important;
    list-style: none !important;
}

.custom-dropdown-menu .dropdown-item {
    display: block !important;
    width: 100% !important;
    padding: 0.375rem 1rem !important;
    clear: both !important;
    font-weight: 400 !important;
    color: #212529 !important;
    text-align: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background-color: transparent !important;
    border: 0 !important;
}

.custom-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa !important;
}

.custom-dropdown-menu .text-danger:hover {
    background-color: #f8d7da !important;
}

.custom-dropdown-menu .dropdown-divider {
    height: 0 !important;
    margin: 0.5rem 0 !important;
    overflow: hidden !important;
    border-top: 1px solid #dee2e6 !important;
}

.table-responsive {
    overflow: visible !important;
}

.btn-group {
    position: relative !important;
}

/* Search Dropdown Styles */
#driverSuggestions {
    position: fixed !important;
    z-index: 2147483647 !important;
    background: rgba(33, 37, 41, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    min-width: 200px !important;
}

#driverSuggestions .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#driverSuggestions .dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: white !important;
}

/* Custom Buttons */
.btn-racing {
    background-color: var(--racing-red);
    border-color: var(--racing-red);
    color: var(--racing-white);
    font-weight: 600;
    
}

.btn-racing:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: var(--racing-white);
    
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-outline-racing {
    border-color: var(--racing-red);
    color: var(--racing-red);
    font-weight: 600;
    
}

.btn-outline-racing:hover {
    background-color: var(--racing-red);
    border-color: var(--racing-red);
    color: var(--racing-white);
    
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.bg-outline-racing {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--racing-red);
    border: 1px solid var(--racing-red);
}

/* Racing Header */
.racing-header {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(33, 37, 41, 0.2) 100%);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.racing-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Round Cards */
.round-card {
    border: none;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.round-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================
   ENHANCED MOBILE OPTIMIZATION
   ======================================== */

/* Mobile scroll hint for tables */
.mobile-scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
    padding: 0.5rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--racing-red);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    .mobile-scroll-hint {
        display: block;
    }
    
    /* Enhanced table responsive container */
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 1rem;
        position: relative;
        max-width: 100%;
        width: 100%;
    }
    
    /* All tables optimized for mobile horizontal scroll */
    .table-responsive .table {
        min-width: 1000px !important; /* Force horizontal scroll */
        margin-bottom: 0;
        font-size: 0.95rem;
        white-space: nowrap;
        width: auto !important;
    }
    
    /* Fix specific table layouts that may override scroll */
    .table-responsive .table-dark,
    .table-responsive .table-striped,
    .table-responsive .table-hover {
        min-width: 1000px !important;
        white-space: nowrap;
    }
    
    /* Ensure scroll works on all screen sizes */
    @media (max-width: 991.98px) {
        .table-responsive {
            overflow-x: scroll !important;
        }
        .table-responsive .table {
            min-width: 800px !important;
        }
    }
    
    @media (max-width: 575.98px) {
        .table-responsive .table {
            min-width: 700px !important;
            font-size: 0.9rem;
        }
        
        /* Extra mobile optimizations for medal badges */
        .mobile-medal-badge {
            font-size: 0.6rem;
            min-width: 28px;
            height: 18px;
            padding: 0.05rem 0.2rem;
        }
        
        .table th:nth-child(1),
        .table td:nth-child(1) {
            min-width: 60px;
            max-width: 60px;
        }
        
        .table th:nth-child(2),
        .table td:nth-child(2) {
            min-width: 160px;
            max-width: 160px;
        }
    }
    
    .table th,
    .table td {
        padding: 0.6rem 0.4rem;
        white-space: nowrap;
        vertical-align: middle;
        border-right: 1px solid rgba(0,0,0,0.05);
    }
    
    .table th:last-child,
    .table td:last-child {
        border-right: none;
    }
    
    /* Optimized column widths for mobile */
    .table th:nth-child(1), /* Position # */
    .table td:nth-child(1) {
        min-width: 70px;
        max-width: 70px;
        text-align: center;
        font-weight: bold;
        padding: 0.3rem !important;
    }
    
    .table th:nth-child(2), /* Driver Name */
    .table td:nth-child(2) {
        min-width: 180px;
        max-width: 180px;
        font-weight: 600;
        padding-left: 0.3rem !important;
    }
    
    .table th:nth-child(3), /* Category */
    .table td:nth-child(3) {
        min-width: 120px;
        max-width: 120px;
    }
    
    .table th:nth-child(4), /* Best Time */
    .table td:nth-child(4) {
        min-width: 100px;
        max-width: 100px;
        text-align: center;
        font-family: 'Courier New', monospace;
        font-weight: bold;
    }
    
    .table th:nth-child(5), /* Points/Year */
    .table td:nth-child(5) {
        min-width: 70px;
        max-width: 70px;
        text-align: center;
    }
    
    .table th:nth-child(6), /* Car */
    .table td:nth-child(6) {
        min-width: 140px;
        max-width: 140px;
    }
    
    /* Position badges mobile - Fix overlap issue */
    .position-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
        min-width: 30px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        white-space: nowrap;
        overflow: hidden;
    }
    
    /* Special styling for medal badges on mobile */
    .mobile-medal-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.25rem;
        min-width: 35px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 3px;
        margin-right: 0.25rem;
    }
    
    /* Category badges mobile */
    .category-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
    }
    
    /* Round cards horizontal scroll */
    .round-cards-container {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding: 0.5rem 0;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .round-card-mobile {
        flex: 0 0 280px;
        max-width: 280px;
        scroll-snap-align: start;
    }
    
    .round-card-mobile .round-card {
        border-radius: 8px !important;
        height: 100%;
    }
    
    /* Container adjustments */
    .container-fluid {
        padding: 0.5rem;
    }
    
    /* Button optimizations */
    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 6px !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
    }
    
    /* Card optimizations */
    .card {
        margin-bottom: 0.75rem;
        border-radius: 8px !important;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .card-body {
        padding: 0.75rem 1rem;
    }
}

/* Extra small devices optimization */
@media (max-width: 575.98px) {
    .container-fluid {
        padding: 0.25rem;
    }
    
    .table {
        min-width: 800px;
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.3rem;
    }
    
    .round-card {
        flex: 0 0 260px;
        max-width: 260px;
    }
    
    .mobile-scroll-hint {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .card-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 0.5rem 0.75rem;
    }
}

.round-card.uploaded {
    border-left: 5px solid var(--racing-red);
}

.round-card.uploaded .card-header {
    background: linear-gradient(135deg, var(--racing-red), #c82333);
    color: var(--racing-white);
    border-radius: 8px 8px 0 0 !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.round-card.not-uploaded .card-header {
    background: linear-gradient(135deg, var(--racing-gray), #5a6268);
    color: var(--racing-white);
    border-radius: 8px 8px 0 0 !important;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Stat Items */
.stat-item {
    padding: 1rem;
    text-align: center;
}

.stat-item h2,
.stat-item h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    border-radius: 10px !important;
    overflow: hidden;
}

.table-hover tbody tr:hover {
    background-color: rgba(220, 53, 69, 0.05);
}

.table-dark {
    background-color: var(--racing-black);
}

/* Progress Bar */
.progress {
    border-radius: 6px !important;
    overflow: hidden;
}

.progress-bar {

}

.bg-racing-red {
    background-color: var(--racing-red) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-bottom: none;
    border-radius: 10px 10px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    
}

.nav-link:hover {
    color: var(--racing-red) !important;
    
}

.nav-link.active {
    color: var(--racing-red) !important;
    font-weight: 600;
}

/* Badges */
.badge {
    font-size: 0.875em;
    padding: 0.5em 0.75em;
    border-radius: 6px !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-secondary {
    background-color: var(--racing-gray) !important;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px !important;
    border: 2px solid #e9ecef;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--racing-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control-lg,
.form-select-lg {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px !important;
    border-left: 5px solid;
}

.alert-success {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.alert-danger {
    border-left-color: var(--racing-red);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    
}

.dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--racing-red);
}

/* Spinner */
.spinner-border.text-racing-red {
    color: var(--racing-red) !important;
}

/* Code styling for lap times */
code {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--racing-red);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
}

/* Enhanced table styling for better readability and space optimization */
.table td {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.4rem !important;
    vertical-align: middle !important;
}

/* Improve table contrast for better readability */
.table .table-light {
    background-color: #f8f9fa !important;
}

.table .table-light td {
    color: #212529 !important;
}

/* Larger font size for time columns only */
.table td:nth-child(2) /* Miglior Tempo column */ {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

/* Consistent font for headers */
.table th,
.table thead th {
    font-size: 0.9rem !important;
    padding: 0.6rem 0.4rem !important;
}

/* Fix delta font color in driver detail pages */
.table .text-white {
    color: #6c757d !important; /* Use muted color instead of white */
}

.table .delta-text {
    color: #6c757d !important;
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .racing-header h1 {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-item h2,
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    /* Championship table mobile optimization */
    .table th,
    .table td {
        padding: 0.4rem 0.25rem;
        vertical-align: middle;
        font-size: 0.85rem;
    }
    
    /* Ensure points column is always visible on mobile */
    .table th:nth-child(3),
    .table td:nth-child(3) {
        min-width: 70px !important;
        width: 70px !important;
        display: table-cell !important;
    }
    
    /* Compact mobile layout for championship standings */
    .table th:nth-child(4),
    .table td:nth-child(4) {
        min-width: 60px;
        width: 60px;
    }
    
    .table th:nth-child(5),
    .table td:nth-child(5) {
        min-width: 90px;
        width: 90px;
    }
    
    /* Hide car column on very small screens to make room for points */
    .table th:nth-child(6),
    .table td:nth-child(6) {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 > * {
        margin-bottom: 0.5rem;
    }
    
    /* Extra small screens - force points column visibility */
    .table-responsive {
        min-width: 100%;
    }
    
    .table {
        width: 100% !important;
        table-layout: fixed;
    }
    
    /* Championship standings mobile layout */
    .table th:nth-child(1),
    .table td:nth-child(1) {
        width: 10% !important;
        min-width: 40px;
    }
    
    .table th:nth-child(2),
    .table td:nth-child(2) {
        width: 30% !important;
        min-width: 80px;
    }
    
    .table th:nth-child(3),
    .table td:nth-child(3) {
        width: 15% !important;
        min-width: 60px !important;
        display: table-cell !important;
    }
    
    .table th:nth-child(4),
    .table td:nth-child(4) {
        width: 12% !important;
        min-width: 50px;
    }
    
    .table th:nth-child(5),
    .table td:nth-child(5) {
        width: 20% !important;
        min-width: 80px;
    }
    
    .table th:nth-child(6),
    .table td:nth-child(6) {
        display: none !important;
    }
    
    .table th:nth-child(7),
    .table td:nth-child(7) {
        width: 13% !important;
        min-width: 50px;
    }
}

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

/* Animation Classes */
.fade-in {

}


.slide-in {

}


/* Chart containers */
canvas {
    max-height: 400px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--racing-red);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
}

.language-option {

    cursor: pointer;
}

.language-option:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
}

#languageDropdown {
    
}

#languageDropdown:hover {
    color: var(--racing-red) !important;
}

#currentLanguage {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Language dropdown customization with high z-index */
.dropdown-menu.bg-dark {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999 !important;
    position: absolute !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure language dropdown appears above everything */
.nav-item.dropdown .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    will-change: auto !important;
}

.dropdown-item.text-white:hover {
    background-color: rgba(220, 53, 69, 0.3) !important;
    color: white !important;
}

/* Fix navbar z-index to ensure dropdown works properly */
.navbar {
    z-index: 1030 !important;
}

/* Ensure the dropdown container has proper positioning */
.nav-item.dropdown {
    position: relative !important;
}

/* Specific styling for language dropdown popup */
.language-dropdown-popup {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 9999 !important;
    min-width: 150px !important;
    margin-top: 0.5rem !important;
    background-color: rgba(33, 37, 41, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
    transform: none !important;
    will-change: auto !important;
}

.language-dropdown-popup.show {
    display: block !important;
    opacity: 1 !important;

}

/* Language dropdown items styling */
.language-dropdown-popup .dropdown-item {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;

    border-radius: 4px !important;
    margin: 2px !important;
}

.language-dropdown-popup .dropdown-item:hover {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: white !important;

}

/* ========================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ======================================== */

/* Mobile First Approach */
@media only screen and (max-width: 767px) {
    /* Base Mobile Styles */
    body {
        background-attachment: scroll; /* Fix iOS background-attachment issue */
        font-size: 14px;
    }
    
    /* Container and Layout */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Typography Scaling */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.9rem; }
    
    /* Navigation Improvements */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    /* Cards Optimization */
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        border-radius: 8px 8px 0 0 !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Round Cards Grid */
    .round-card {
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .round-card .card-header h5 {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    /* Statistics Cards */
    .stat-card {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Table Responsive */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        vertical-align: middle;
    }
    
    /* Hide less important columns on mobile */
    .table .d-none-mobile {
        display: none !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-xs {
        padding: 0.15rem 0.3rem;
        font-size: 0.7rem;
        border-radius: 3px;
    }
    
    /* Forms */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Modal Optimization */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Footer Adjustments */
    .footer {
        padding: 2rem 0;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Championship Standings */
    .standings-table {
        font-size: 0.8rem;
    }
    
    .standings-table .driver-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Search and Filter */
    .search-container {
        margin-bottom: 1rem;
    }
    
    .filter-container {
        margin-bottom: 1rem;
    }
    
    /* Logo Adjustments */
    .logo-contrast {
        padding: 2px 6px;
        border-radius: 6px;
    }
    
    /* Track Record Section */
    .track-record {
        padding: 1rem;
        text-align: center;
    }
    
    .track-record h3 {
        font-size: 1.1rem;
    }
    
    .track-record .record-time {
        font-size: 1.3rem;
    }
}

/* Tablet Optimization */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .round-card {
        min-height: 320px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.95rem;
    }
}

/* Large Mobile (Phablet) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Small Mobile Optimization */
@media only screen and (max-width: 375px) {
    /* Extra small mobile devices */
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        border-radius: 6px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.35rem;
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
}

/* Landscape Mobile Optimization */
@media only screen and (max-width: 767px) and (orientation: landscape) {
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    .card-header {
        padding: 0.5rem 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    .round-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .table .btn-sm {
        min-height: 36px;
        min-width: 36px;
    }
}

/* Extra Small Button Global Style */
.btn-xs {
    padding: 0.15rem 0.3rem;
    font-size: 0.7rem;
    border-radius: 3px;
    min-height: 28px;
    min-width: 28px;
}

/* Print Optimizations */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .table {
        font-size: 12px;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
