:root {
    --brand-color: #f4c430;
}

/* --------------------
Global Navbar Styling
-------------------- */
.navbar {
    background: linear-gradient(135deg, #0a2472, #06163a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0.6rem 1rem;
    transition: background 0.3s ease;
    z-index: 1030;
    height: 60px;
}

/* --------------------
Brand Logo
-------------------- */
.navbar-brand {
    color: #f8f9fa;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-left: 0.4rem;
    color: var(--brand-color);
    font-size: 1.4rem;
}

/* --------------------
Nav Links & Dropdown
-------------------- */
.navbar .nav-link {
    color: #dee2e6 !important;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--brand-color) !important;
}

/* Active Nav Link */
.navbar .nav-link.active,
.navbar .nav-link.show,
.navbar .nav-item.dropdown .nav-link.active {
    color: var(--brand-color) !important;
    font-weight: 600;
}

/* Auto-show dropdown on hover */
.navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* --------------------
Dropdown Menu
-------------------- */
.navbar .dropdown-menu {
    background: rgba(6, 22, 58, 0.9);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 210px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.2s ease-in-out;
}
.navbar .dropdown-item {
    background: transparent;
    color: #f0f0f0;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.navbar .dropdown-item i {
    width: 18px;
    text-align: center;
}
.navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Active Dropdown Item */
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background: rgba(255, 193, 7, 0.1);
    color: var(--brand-color);
    font-weight: 600;
}

/* Divider inside dropdown */
.dropdown-divider,
hr.divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* --------------------
Toggler Button
-------------------- */
.navbar-toggler {
    border: none;
    padding: 0.35rem 0.6rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Avatar */
.avatar-minimal {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #444;
}
.avatar-minimal-desktop {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #444;
}

/* Sidebar base */
.sidebar {
    position: fixed;
    top: 60px;
    bottom: 0;
    width: 260px;
    background: linear-gradient(135deg, #0a2472, #06163a) #06163a;
    padding-top: 20px;
    transition: all 0.3s ease-in-out;
    z-index: 1040;
    overflow-y: auto;
}
/* RTL: open from RIGHT */
html[dir="rtl"] .sidebar {
    right: -260px;
}
html[dir="rtl"] .sidebar.active {
    right: 0;
}
/* LTR: open from LEFT */
html[dir="ltr"] .sidebar {
    left: -260px;
}
html[dir="ltr"] .sidebar.active {
    left: 0;
}

/* Sidebar link styling */
.sidebar-link {
    display: block;
    padding: 12px 18px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
}
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.sidebar-link.active {
    color: var(--brand-color);
    background: rgba(244, 196, 48, 0.1);
    font-weight: bold;
}
.sidebar-title {
    color: var(--brand-color) !important;
    font-size: 13px;
    margin: 30px 0 10px;
    padding: 0 18px;
    letter-spacing: 0.5px;
    font-weight: bold;
    position: relative;
}
.sidebar-title::after {
    content: "";
    position: absolute;
    right: 15px;
    left: 15px;
    bottom: -5px;
    height: 1px;
    background: linear-gradient(to right, transparent, #f4c43055, transparent);
}
/* Overlay with fade animation */
.sidebar-overlay {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1030;
}
/* When active */
.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --------------------
Animations
-------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Uncomment this part if you want to enable collapsible sidebar */
/* Collapsible header */
/* .sidebar-title.collapsible {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
} */
/* Arrow icon */
/* .sidebar-title .arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
} */
/* Rotate arrow when open */
/* .sidebar-title.active .arrow {
    transform: rotate(180deg);
} */
/* Collapsible group (closed by default) */
/* .sidebar-group {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
} */
/* Open state */
/* .sidebar-group.open {
    max-height: 500px;
} */