/* UNIVERSAL NAVBAR STYLES - DO NOT MODIFY PER PAGE */
/* This file ensures 100% identical navbar across all pages */
/* Navbar Styles - v2.0 */

/* Navbar */
.navbar {
    background: rgba(25, 118, 210, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    height: 64px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 100vw;
    overflow: visible;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    letter-spacing: 0.15px;
    transition: opacity 0.2s;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.navbar-brand:hover {
    opacity: 0.85;
}

.navbar-brand .material-icons {
    font-size: 32px;
}

.navbar-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
}

.navbar-menu::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nav-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-bottom: 3px solid white;
}

.nav-btn.primary {
    background: white;
    color: #1976D2;
    transition: all 0.3s ease;
}

.nav-btn.primary:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.nav-btn.primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-btn.primary.hidden {
    display: none;
}

/* Hamburger Menu Button - Hidden on Desktop */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
    transition: transform 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation when Open */
.hamburger-menu.open .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-menu.open .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Dropdown Menu - Hidden by Default */
.mobile-menu-dropdown {
    display: none !important; /* Force hide on desktop */
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(25, 118, 210, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1099;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-dropdown.open {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.mobile-menu-items .nav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 24px;
    border-radius: 0;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
    font-size: 16px;
}

.mobile-menu-items .nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    padding-left: 28px;
}

.mobile-menu-items .nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-left-color: white;
    border-bottom: none;
    font-weight: 500;
}

.mobile-menu-items .nav-btn.primary {
    margin: 8px 16px;
    border-radius: 4px;
    justify-content: center;
    border-left: none;
}

.mobile-menu-items .nav-btn.primary:hover {
    padding-left: 16px;
}

@media (max-width: 1024px) {
    .navbar {
        height: 56px;
        padding: 0 16px;
    }

    .navbar-brand {
        font-size: 20px;
        margin-right: auto;
    }

    .navbar-brand img {
        width: 28px !important;
        height: 28px !important;
    }

    /* Hide desktop menu on mobile/tablet */
    .navbar-menu {
        display: none;
    }

    /* Show hamburger menu on mobile/tablet */
    .hamburger-menu {
        display: flex;
    }

    /* Show mobile dropdown menu on mobile/tablet */
    .mobile-menu-dropdown {
        display: block !important; /* Override desktop force-hide */
    }
}

/* Admin Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-dropdown-toggle .material-icons {
    font-size: 18px;
    transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle .material-icons {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 1200;
}

.nav-dropdown.open .nav-dropdown-menu {
    display: block !important;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #424242;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown-item:hover {
    background: #f5f5f5;
}

.nav-dropdown-item .material-icons {
    font-size: 20px;
    color: #757575;
}

/* Admin dropdown - initially hidden, shown by JavaScript for admin users */
.nav-admin {
    display: none;
}

/* Mobile Admin Section - Collapsible */
.nav-admin-mobile {
    display: none;
}

.nav-admin-toggle {
    width: 100%;
    justify-content: flex-start;
    position: relative;
}

.nav-admin-toggle .admin-chevron {
    position: absolute;
    right: 16px;
    transition: transform 0.3s ease;
}

.nav-admin-mobile.open .nav-admin-toggle .admin-chevron {
    transform: rotate(180deg);
}

.nav-admin-submenu {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.nav-admin-mobile.open .nav-admin-submenu {
    display: flex;
}

.nav-admin-submenu-item {
    padding-left: 48px !important;
    font-size: 14px !important;
    border-left: 4px solid transparent !important;
}

.nav-admin-submenu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5) !important;
}

.nav-admin-submenu-item .material-icons {
    font-size: 18px;
    opacity: 0.8;
}

/* Mobile dropdown styles */
@media (max-width: 1024px) {
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block !important;
    }

    .nav-dropdown-item {
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 32px;
    }

    .nav-dropdown-item:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .nav-dropdown-item .material-icons {
        color: rgba(255, 255, 255, 0.7);
    }
}
