/* Modern Header Styles */
.header-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    will-change: transform;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    pointer-events: auto;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 32px;
}

/* Logo */
.logo-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
    transition: transform 0.2s;
}

.logo-modern:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: space-between;
}

.nav-primary {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary-color);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary-color);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.nav-cta:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-button {
    background: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
}

.nav-button:hover {
    background: #5568d3;
}

/* Notifications */
.notifications-modern {
    position: relative;
}

.notifications-btn {
    position: relative;
    background: none;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s;
}

.notifications-btn:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary-color);
}

.notification-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notifications-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.notifications-panel.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.notifications-panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.notifications-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-mark-all {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-mark-all:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notifications-panel-body {
    max-height: 450px;
    overflow-y: auto;
}

.notification-item-modern {
    display: flex;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
    position: relative;
    gap: 12px;
}

.notification-item-modern:hover {
    background: #f8f9fa;
}

.notification-item-modern.unread {
    background: #f0f4ff;
}

.notification-icon-modern {
    font-size: 24px;
    flex-shrink: 0;
}

.notification-body-modern {
    flex: 1;
    min-width: 0;
}

.notification-title-modern {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.notification-text-modern {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time-modern {
    font-size: 11px;
    color: #999;
}

.notification-dot-modern {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
    margin-top: 8px;
}

.notifications-empty {
    padding: 60px 20px;
    text-align: center;
    color: #999;
}

.notifications-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.notifications-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    background: #f8f9fa;
}

.notifications-panel-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.notifications-panel-footer a:hover {
    text-decoration: underline;
}

/* User Menu */
.user-menu-modern {
    position: relative;
    z-index: 1003 !important;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 1003 !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}

.user-menu-btn:hover {
    background: rgba(102, 126, 234, 0.08);
}

.user-avatar-modern {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.user-name-modern {
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1004 !important;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    pointer-events: auto !important;
}

.user-menu-modern.active .user-menu-panel {
    display: block;
    animation: slideDown 0.3s ease;
}

.menu-item-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: background-color 0.2s;
}

.menu-item-modern:hover {
    background: #f8f9fa;
}

.menu-item-modern svg {
    flex-shrink: 0;
    color: #666;
}

.menu-item-danger {
    color: #ef4444;
}

.menu-item-danger:hover {
    background: #fef2f2;
}

.menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 4px 0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-modern {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        display: flex;
    }
    
    .nav-modern.active {
        transform: translateX(0);
    }
    
    .nav-primary,
    .nav-secondary {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .nav-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




