/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Glass Navbar */
.glass-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    height: 80px;
}

/* Brand/Logo */
.navbar-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s ease;
}

.brand-link:hover {
    opacity: 0.8;
}

.brand-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
}

.avatar-letter {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-pill {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 8px;
    gap: 4px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
}

.nav-icon {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.nav-link.active .nav-icon {
    opacity: 1;
}

.nav-text {
    white-space: nowrap;
}

/* Navigation Indicator */
.nav-indicator {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* Right Actions */
.navbar-actions {
    flex-shrink: 0;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ff4757;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.action-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.profile-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #2ed573;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.profile-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.profile-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.user-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.user-info span {
    font-size: 14px;
    color: #666;
}

.dropdown-section {
    padding: 12px 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dropdown-item.danger {
    color: #ff4757;
}

.dropdown-item.danger:hover {
    background: rgba(255, 71, 87, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mobile-nav-content {
    padding: 24px;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.mobile-nav-link.active {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.mobile-link-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-link-arrow {
    color: rgba(51, 51, 51, 0.5);
    transition: transform 0.2s ease;
}

.mobile-nav-link:hover .mobile-link-arrow {
    transform: translateX(4px);
}

.mobile-nav-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

.mobile-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.mobile-avatar-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-profile-initial {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.mobile-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-profile-info strong {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.mobile-profile-info span {
    font-size: 14px;
    color: #666;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .glass-navbar {
        width: calc(100% - 32px);
    }
    
    .navbar-container {
        padding: 16px 20px;
    }
    
    .nav-pill {
        gap: 2px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-icon {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .glass-navbar {
        top: 16px;
        width: calc(100% - 32px);
    }
    
    .navbar-container {
        height: 64px;
        padding: 12px 20px;
    }
    
    .main-nav,
    .navbar-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
        justify-content: center;
    }
    
    .brand-info {
        display: none;
    }
    
    .brand-avatar {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .avatar-letter {
        font-size: 16px;
    }
    
    .mobile-nav {
        top: 88px;
        width: calc(100% - 32px);
    }
}

@media (max-width: 480px) {
    .glass-navbar {
        width: calc(100% - 24px);
    }
    
    .navbar-container {
        padding: 12px 16px;
    }
    
    .mobile-nav {
        width: calc(100% - 24px);
    }
    
    .mobile-nav-content {
        padding: 20px;
    }
}