:root {
    --primary: #003087;
    --primary-dark: #001a4d;
    --accent: #c8a951;
    --accent-dark: #a8882e;
    --surface: #f5f7fc;
    --text: #1a1f36;
    --text-muted: #6b7280;
    --border: #e4e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .10);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .15);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: .25s ease;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #002060 45%, #003580 100%);
    padding: 5px !important;
    border-bottom: 3px solid var(--accent);
    border-top: 3px solid var(--accent);
    z-index: 1050;
}

.navbar .navbar-brand span {
    font-family: Forte;
    color: #fff;
    letter-spacing: 1px;
}

#offcanvas-brand-text {
    font-family: Forte;
    color: #fff;
    letter-spacing: 1px;
}

.navbar .navbar-toggler {
    border: none;
    padding: 8px 12px;
    z-index: 1051;
}

.navbar .navbar-toggler i {
    font-size: 1.5rem;
    color: #fff;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 1.1rem 1.2rem !important;
    position: relative;
    transition: color var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar .nav-item:last-child .nav-link {
    border-right: none;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--accent) !important;
    background-color: rgba(200, 169, 81, 0.08);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

#offcanvas.offcanvas,
.offcanvas#offcanvas {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #002060 45%, #003580 100%);
    color: #fff !important;
    border-left: none;
    z-index: 1055;
}

#offcanvas .offcanvas-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #002060 45%, #003580 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#offcanvas .offcanvas-body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #002060 45%, #003580 100%) !important;
}

#offcanvas .offcanvas-title {
    color: #fff !important;
}

#offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    position: relative;
    transition: background-color 0.25s ease, color 0.25s ease;
    display: block;
    pointer-events: auto;
}

#offcanvas .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

#offcanvas .nav-link:hover,
#offcanvas .nav-link.active {
    color: var(--accent) !important;
    background-color: rgba(200, 169, 81, 0.08);
}

#offcanvas .nav-link:hover::after,
#offcanvas .nav-link.active::after {
    transform: scaleX(1);
}

@media (max-width: 991px) {
    .navbar .nav-link::after {
        display: none;
    }
}

.nav-icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
}

.nav-icon-pill:hover,
.nav-icon-pill.active {
    color: var(--accent) !important;
    border-color: var(--accent);
    background: rgba(200, 169, 81, 0.1);
}

.nav-item-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 6px 0;
    list-style: none;
}

.nav-link-special {
    display: block;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-link-special:hover,
.nav-link-special.active {
    color: var(--accent) !important;
    background-color: rgba(200, 169, 81, 0.08);
}
