/* ============================================
   HEADER.CSS - Premium Glass Header
   ============================================ */

/* ============================================
   TOP BAR 
   ============================================ */
.top-bar {
    position: fixed;
    top: 16px;
    left: 40px;
    right: 40px;
    width: calc(100% - 80px);
    height: 72px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 1000;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(139, 92, 246, 0.05) inset,
        0 0 40px rgba(99, 102, 241, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-bar::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%,
        rgba(139, 92, 246, 0.04) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    z-index: -1;
}

.top-bar::after {
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139, 92, 246, 0.5),
        rgba(99, 102, 241, 0.5),
        transparent
    );
    border-radius: 50%;
    opacity: 0;
    transition: all 0.5s ease;
}

.top-bar:hover::after {
    opacity: 1;
    left: 10%;
    right: 10%;
}

.top-bar:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.1) inset,
        0 0 60px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

/* ============================================
   LOGO
   ============================================ */
.header-left {
    display: flex;
    align-items: center;
}

.header-left a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.app-logo h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.app-logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #8B5CF6, #6366F1, #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoHeartbeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

@keyframes logoHeartbeat {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
    14% { 
        transform: scale(1.15);
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
    }
    28% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
    42% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
    }
    70% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    }
}

.app-logo span {
    background: linear-gradient(135deg, #FFFFFF, #A78BFA, #8B5CF6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: logoGradient 4s ease infinite;
}

@keyframes logoGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   USER ACTIONS
   ============================================ */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   SEARCH TRIGGER - Premium
   ============================================ */
.search-trigger {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.search-trigger i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.search-trigger:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.search-trigger:hover i {
    color: #A78BFA;
    transform: scale(1.1);
}

.search-trigger:active {
    transform: scale(0.95);
}

/* ============================================
   SEARCH DROPDOWN
   ============================================ */
.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.search-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.search-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: rgba(15, 23, 42, 0.98);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    transform: rotate(45deg);
    backdrop-filter: blur(24px);
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    color: #F1F5F9;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding-left: 42px;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.search-input-wrapper::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
    pointer-events: none;
}

/* ============================================
   THEME TOGGLE - Premium
   ============================================ */
.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.theme-toggle i {
    font-size: 1.1rem;
    transition: all 0.5s ease;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px) rotate(15deg) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    color: #A78BFA;
}

.theme-toggle:active {
    transform: scale(0.95) rotate(0deg);
}

/* ============================================
   NOTIFICATION BELL - Premium
   ============================================ */
.notification-container {
    position: relative;
    display: inline-block;
}

.notification-bell {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    position: relative;
}

.notification-bell i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.notification-bell:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    color: #A78BFA;
}

.notification-bell:hover i {
    transform: scale(1.1);
}

.notification-bell.has-notifications {
    animation: bellShake 0.6s ease;
}

.notification-bell.has-notifications i {
    color: #FBBF24;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(12deg); }
    20%, 40%, 60%, 80% { transform: rotate(-8deg); }
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid rgba(15, 23, 42, 0.8);
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: 90vw;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-dropdown:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: rgba(15, 23, 42, 0.98);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    transform: rotate(45deg);
    backdrop-filter: blur(24px);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.notification-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #F1F5F9;
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mark-all-read:hover {
    color: #A78BFA;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 4px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.notification-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-radius: 10px;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center;
}

.view-all-notifications {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-notifications:hover {
    color: #A78BFA;
}

/* ============================================
   USER PROFILE - Premium
   ============================================ */
.user-profile {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.user-profile:hover .user-avatar {
    transform: scale(1.05);
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PROFILE DROPDOWN - Premium
   ============================================ */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.profile-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: rgba(15, 23, 42, 0.98);
    border-left: 1px solid rgba(139, 92, 246, 0.2);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    transform: rotate(45deg);
    backdrop-filter: blur(24px);
}

/* ============================================
   HEADER USER STATS - PREMIUM DESIGN
   ============================================ */

/* ===== USER INFO SECTION ===== */
.profile-dropdown .sidebar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px 18px;
    margin-bottom: 16px;
    background: linear-gradient(145deg,
        rgba(139, 92, 246, 0.05),
        rgba(99, 102, 241, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Shine Effect */
.profile-dropdown .sidebar-user::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.profile-dropdown .sidebar-user:hover::before {
    left: 100%;
}

.profile-dropdown .sidebar-user:hover {
    border-color: rgba(139, 92, 246, 0.15);
    background: linear-gradient(145deg,
        rgba(139, 92, 246, 0.08),
        rgba(99, 102, 241, 0.04));
    transform: translateX(4px);
}

/* ===== AVATAR ===== */
.profile-dropdown .user-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-dropdown .sidebar-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #6a5acd, #8b5cf6);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.profile-dropdown .sidebar-user:hover .sidebar-avatar {
    border-color: rgba(139, 92, 246, 0.6);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

/* ===== ONLINE STATUS ===== */
.profile-dropdown .online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 13px;
    height: 13px;
    background: #10B981;
    border-radius: 50%;
    border: 2.5px solid rgba(15, 23, 42, 0.95);
    animation: pulseOnline 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
}

@keyframes pulseOnline {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ===== USER INFO ===== */
.profile-dropdown .sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.profile-dropdown .sidebar-username {
    font-weight: 700;
    font-size: 1rem;
    color: #F1F5F9;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown .sidebar-user:hover .sidebar-username {
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== USER STATS ===== */
.profile-dropdown .sidebar-user-stats {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.profile-dropdown .stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2px 10px 2px 8px;
    transition: all 0.3s ease;
}

.profile-dropdown .stat-number {
    font-weight: 800;
    font-size: 1.1rem;
    color: #A78BFA;
    line-height: 1.2;
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
    padding: 4px;
}

.profile-dropdown .sidebar-user:hover .stat-number {
    color: #C4B5FD;
    transform: scale(1.02);
}

.profile-dropdown .stat-label {
    font-size: 0.7rem;
    color: rgba(241, 245, 249, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.profile-dropdown .sidebar-user:hover .stat-label {
    color: rgba(241, 245, 249, 0.6);
}

/* ===== STAT DIVIDER ===== */
.profile-dropdown .stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.393);
    flex-shrink: 0;
    align-self: center;
}

/* ============================================
   LIGHT THEME
   ============================================ */

[data-theme="light"] .profile-dropdown .sidebar-user {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.5),
        rgba(248, 250, 252, 0.6));
    border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .profile-dropdown .sidebar-user:hover {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.7),
        rgba(248, 250, 252, 0.8));
    border-color: rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .profile-dropdown .sidebar-avatar {
    border-color: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .profile-dropdown .sidebar-user:hover .sidebar-avatar {
    border-color: rgba(139, 92, 246, 0.4);
}

[data-theme="light"] .profile-dropdown .sidebar-username {
    color: #0f172a;
}

[data-theme="light"] .profile-dropdown .sidebar-user:hover .sidebar-username {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .profile-dropdown .stat-number {
    color: #7C3AED;
}

[data-theme="light"] .profile-dropdown .sidebar-user:hover .stat-number {
    color: #6D28D9;
}

[data-theme="light"] .profile-dropdown .stat-label {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .profile-dropdown .sidebar-user:hover .stat-label {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .profile-dropdown .stat-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .profile-dropdown .sidebar-user:hover .stat-item {
    background: rgba(139, 92, 246, 0.04);
    border-color: rgba(139, 92, 246, 0.06);
}

[data-theme="light"] .profile-dropdown .stat-divider {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .profile-dropdown .online-status {
    border-color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .profile-dropdown .sidebar-user {
        padding: 14px 14px 16px;
        gap: 12px;
        border-radius: 14px;
    }

    .profile-dropdown .sidebar-avatar {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .profile-dropdown .online-status {
        width: 11px;
        height: 11px;
        bottom: 1px;
        right: 1px;
    }

    .profile-dropdown .sidebar-username {
        font-size: 0.9rem;
    }

    .profile-dropdown .sidebar-user-stats {
        gap: 12px;
    }

    .profile-dropdown .stat-number {
        font-size: 0.95rem;
    }

    .profile-dropdown .stat-label {
        font-size: 0.55rem;
    }

    .profile-dropdown .stat-item {
        padding: 1px 6px 1px 5px;
    }

    .profile-dropdown .stat-divider {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .profile-dropdown .sidebar-user {
        padding: 12px 12px 14px;
        gap: 10px;
        border-radius: 12px;
    }

    .profile-dropdown .sidebar-avatar {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .profile-dropdown .online-status {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .profile-dropdown .sidebar-username {
        font-size: 0.85rem;
    }

    .profile-dropdown .sidebar-user-stats {
        gap: 8px;
    }

    .profile-dropdown .stat-number {
        font-size: 0.85rem;
    }

    .profile-dropdown .stat-label {
        font-size: 0.5rem;
    }

    .profile-dropdown .stat-item {
        padding: 1px 4px 1px 4px;
        border-radius: 6px;
    }

    .profile-dropdown .stat-divider {
        height: 20px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .profile-dropdown .online-status {
        animation: none !important;
    }

    .profile-dropdown .sidebar-user::before {
        display: none !important;
    }

    .profile-dropdown .sidebar-user:hover {
        transform: none !important;
    }

    .profile-dropdown .sidebar-user:hover .sidebar-avatar {
        transform: none !important;
    }

    .profile-dropdown .stat-number {
        transition: none !important;
    }
}

/* ============================================
   SIDEBAR MENU (Inside Dropdown)
   ============================================ */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
}

.sidebar-menu .menu-item i {
    width: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-menu .menu-item span {
    flex: 1;
}

.sidebar-menu .menu-item:hover {
    background: rgba(139, 92, 246, 0.08);
    color: #A78BFA;
    transform: translateX(4px);
}

.sidebar-menu .menu-item:hover i {
    color: #A78BFA;
    transform: scale(1.1);
}

.sidebar-menu .menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    color: #A78BFA;
}

.sidebar-menu .menu-item.active i {
    color: #A78BFA;
}

.sidebar-menu .menu-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    border-radius: 0 3px 3px 0;
}

/* Logout Button */
.sidebar-menu .menu-item#logoutBtn {
    margin-top: 8px;
    border-top: 1px solid rgba(239, 68, 68, 0.1);
    padding-top: 14px;
    color: rgba(255, 255, 255, 0.3);
}

.sidebar-menu .menu-item#logoutBtn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
}

.sidebar-menu .menu-item#logoutBtn:hover i {
    color: #EF4444;
}

/* ============================================
   RESPONSIVE HEADER
   ============================================ */
@media (max-width: 1024px) {
    .top-bar {
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        height: 68px;
        padding: 0 20px;
        border-radius: 24px;
    }
    
    .app-logo h2 {
        font-size: 1.3rem;
    }
    
    .app-logo i {
        font-size: 1.5rem;
    }
    
    .search-trigger,
    .theme-toggle,
    .notification-bell {
        width: 40px;
        height: 40px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        height: 60px;
        padding: 0 14px;
        border-radius: 20px;
        top: 10px;
    }
    
    .app-logo h2 {
        font-size: 1.1rem;
    }
    
    .app-logo i {
        font-size: 1.2rem;
    }
    
    .app-logo span {
        display: none;
    }
    
    .search-trigger,
    .theme-toggle,
    .notification-bell {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
    
    .search-trigger i,
    .theme-toggle i,
    .notification-bell i {
        font-size: 0.9rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
    
    .user-actions {
        gap: 6px;
    }
    
    .search-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
    }
    
    .profile-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .notification-dropdown {
        width: calc(100vw - 40px);
        right: -10px;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .top-bar {
        height: 54px;
        padding: 0 10px;
        border-radius: 16px;
        top: 8px;
        left: 8px;
        right: 8px;
        width: calc(100% - 16px);
    }
    
    .app-logo h2 {
        font-size: 0.95rem;
    }
    
    .app-logo i {
        font-size: 1rem;
    }
    
    .search-trigger,
    .theme-toggle,
    .notification-bell {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    
    .search-trigger i,
    .theme-toggle i,
    .notification-bell i {
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    
    .user-actions {
        gap: 4px;
    }
}

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] .top-bar {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(99, 102, 241, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(99, 102, 241, 0.05) inset;
}

[data-theme="light"] .top-bar::before {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(139, 92, 246, 0.04) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

[data-theme="light"] .top-bar:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(99, 102, 241, 0.08) inset;
}

[data-theme="light"] .app-logo span {
    background: linear-gradient(135deg, #1a1f2e, #7C3AED, #4F46E5);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .search-trigger,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .notification-bell {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .search-trigger i,
[data-theme="light"] .theme-toggle i,
[data-theme="light"] .notification-bell i {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .search-trigger:hover,
[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .notification-bell:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
    border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .search-trigger:hover i,
[data-theme="light"] .theme-toggle:hover i,
[data-theme="light"] .notification-bell:hover i {
    color: #6366F1;
}

[data-theme="light"] .search-dropdown,
[data-theme="light"] .profile-dropdown,
[data-theme="light"] .notification-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .search-dropdown::before,
[data-theme="light"] .profile-dropdown::before,
[data-theme="light"] .notification-dropdown::before {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .search-input-wrapper input {
    background: rgba(0, 0, 0, 0.03);
    color: #1a1f2e;
}

[data-theme="light"] .search-input-wrapper input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .search-input-wrapper::before {
    color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .notification-header h3 {
    color: #1a1f2e;
}

[data-theme="light"] .mark-all-read {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .mark-all-read:hover {
    color: #6366F1;
}

[data-theme="light"] .sidebar-username {
    color: #1a1f2e;
}

[data-theme="light"] .sidebar-menu .menu-item {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .sidebar-menu .menu-item:hover {
    color: #6366F1;
}

[data-theme="light"] .sidebar-menu .menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
    color: #6366F1;
}

[data-theme="light"] .sidebar-menu .menu-item#logoutBtn {
    border-top-color: rgba(239, 68, 68, 0.08);
}

[data-theme="light"] .sidebar-menu .menu-item#logoutBtn:hover {
    color: #EF4444;
}

[data-theme="light"] .sidebar-menu .menu-item#logoutBtn:hover i {
    color: #EF4444;
}

[data-theme="light"] .view-all-notifications {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .view-all-notifications:hover {
    color: #6366F1;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .top-bar,
    .top-bar::after,
    .app-logo i,
    .app-logo span,
    .search-trigger,
    .theme-toggle,
    .notification-bell,
    .user-avatar,
    .profile-dropdown,
    .search-dropdown,
    .notification-dropdown {
        animation: none !important;
        transition: none !important;
    }
    
    .top-bar:hover {
        transform: none !important;
    }
}