/* NOA Vehicle Stylesheet - Cyber Amber & Heavy Steel Gray Edition */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=Outfit:wght@400;600;700;900&display=swap');

:root {
    --vehicle-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --vehicle-heading-font: 'Outfit', sans-serif;
    --vehicle-amber: #F59E0B;
    --vehicle-amber-dark: #D97706;
    --vehicle-dark: #0B0F19;
    --vehicle-slate: #111827;
    --vehicle-sidebar-bg: linear-gradient(180deg, #0B0F19 0%, #111827 100%);
    --vehicle-sidebar-color: #FEF3C7;
    --vehicle-body-bg: #F8FAFC;
    --vehicle-card-bg: #FFFFFF;
    --vehicle-border: #E2E8F0;
    --vehicle-radius: 18px;
    --vehicle-shadow: 0 10px 30px -5px rgba(245, 158, 11, 0.15);
    --vehicle-shadow-hover: 0 20px 40px -5px rgba(217, 119, 6, 0.25);
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--vehicle-font);
    background-color: var(--vehicle-body-bg);
    color: #0F172A;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .sidebar-brand-text {
    font-family: var(--vehicle-heading-font);
}

#wrapper {
    display: flex;
    width: 100%;
    min-width: 100%;
    align-items: stretch;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    background: var(--vehicle-sidebar-bg);
    color: var(--vehicle-sidebar-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s ease;
    z-index: 1040;
    box-shadow: 6px 0 30px rgba(0,0,0,0.45);
    overflow-y: auto;
    max-height: 100vh;
}

#sidebar .sidebar-brand {
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

#sidebar .sidebar-brand-text {
    font-weight: 900;
    font-size: 1.35rem;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

#sidebar .sidebar-menu {
    padding: 1rem 0.75rem;
    list-style: none;
    margin: 0;
}

#sidebar .menu-header {
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #FBBF24;
    padding: 0.9rem 1rem 0.35rem;
}

#sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.95rem;
    color: #FDE68A;
    font-weight: 600;
    font-size: 0.86rem;
    border-radius: 12px;
    margin-bottom: 3px;
    transition: all 0.25s ease;
    text-decoration: none;
}

#sidebar .nav-link .nav-link-content {
    display: flex;
    align-items: center;
}

#sidebar .nav-link i.menu-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    transition: color 0.2s ease;
}

#sidebar .nav-link:hover {
    color: #FFFFFF;
    background: rgba(245, 158, 11, 0.18);
    transform: translateX(3px);
}

#sidebar .nav-link.active {
    color: #0B0F19;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

#sidebar .sub-menu {
    list-style: none;
    padding-left: 2.2rem;
    margin: 0.2rem 0;
}

#sidebar .sub-menu .sub-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #FDE68A;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

#sidebar .sub-menu .sub-nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

#sidebar .sub-menu .sub-nav-link.active {
    color: #F59E0B;
    font-weight: 800;
}

#content-wrapper {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.75rem !important;
}

.top-navbar {
    height: 74px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--vehicle-border);
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.card-custom {
    background: var(--vehicle-card-bg);
    border-radius: var(--vehicle-radius);
    border: 1px solid var(--vehicle-border);
    box-shadow: var(--vehicle-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    width: 100%;
}

.card-custom:hover {
    box-shadow: var(--vehicle-shadow-hover);
    transform: translateY(-2px);
}

.stat-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.table-custom {
    vertical-align: middle;
    width: 100%;
}
.table-custom th {
    background-color: #FEF3C7;
    color: #B45309;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--vehicle-border);
    padding: 0.9rem 0.9rem;
    white-space: nowrap;
}
.table-custom td {
    padding: 0.9rem 0.9rem;
    color: #1E293B;
    font-size: 0.88rem;
    border-bottom: 1px solid #FFFBEB;
    white-space: nowrap;
}

footer.footer {
    width: 100%;
    margin-top: auto;
    padding: 1rem 1.75rem;
}

@media (min-width: 992px) {
    #sidebar.toggled {
        margin-left: -280px;
    }
}

@media (max-width: 991.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    }
    #sidebar.toggled {
        transform: translateX(0);
    }
    .top-navbar {
        padding: 0 1rem;
        height: 64px;
    }
    main.container-fluid {
        padding: 1rem !important;
    }
}
