.impersonation-banner {
    background: linear-gradient(135deg, #c29f5d 0%, #a88a4f 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.impersonation-banner strong {
    font-weight: 700;
}

.impersonation-return-btn {
    background: white;
    color: #1e5a6e;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.impersonation-return-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .impersonation-banner {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .impersonation-return-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.main-nav {
    background: white;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    z-index: 1000;
}

body {
    margin: 0;
    padding: 0;
}

#mainNav {
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 10px 0;
}

.nav-brand img {
    height: 45px;
    width: auto;
}

.nav-brand-text {
    color: #03394E;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    display: none;
}

@media (min-width: 768px) {
    .nav-brand-text {
        display: block;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-link {
    color: #333;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover {
    background: #f5f5f5;
    color: #03394E;
}

.nav-link:active {
    opacity: 0.7;
    transform: scale(0.98);
}

.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B49D75, #03394E, #B49D75);
    background-size: 200% 100%;
    animation: loading-bar 1s ease-in-out infinite;
    z-index: 9999;
}

@keyframes loading-bar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.nav-link.active {
    background: rgba(180, 157, 117, 0.2);
    color: #03394E;
    border-bottom: 2px solid #B49D75;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-user-info {
    color: #666;
    font-size: 0.85rem;
    padding-right: 10px;
    border-right: 1px solid #ddd;
    display: none;
}

@media (min-width: 992px) {
    .nav-user-info {
        display: block;
    }
}

.nav-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.nav-btn-secondary:hover {
    background: #e0e0e0;
}

.nav-btn-logout {
    background: #dc3545;
    color: white;
}

.nav-btn-logout:hover {
    background: #c82333;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    padding: 8px;
    cursor: pointer;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-trigger .dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.nav-dropdown-trigger.open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 12px 0 8px 0;
    z-index: 1001;
}

.nav-dropdown-menu.show {
    display: block;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-dropdown-item:hover {
    background: #f5f5f5;
    color: #03394E;
}

.nav-dropdown-item.active {
    background: rgba(180, 157, 117, 0.15);
    color: #03394E;
    font-weight: 600;
}

.nav-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .nav-mobile-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 10px;
        gap: 5px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-trigger {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border-left: 3px solid #B49D75;
        margin: 5px 0 5px 10px;
        padding: 0;
        border-radius: 0;
        background: #fafafa;
    }
    
    .nav-dropdown-menu.show {
        display: block;
    }
    
    .nav-dropdown-item {
        padding: 10px 16px;
    }
}

.nav-notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
}
