/* Dashboard Header - DHA Bahawalpur */

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.dashboard-main.sidebar-hidden {
    margin-left: 0;
}

.dashboard-main.sidebar-collapsed {
    margin-left: 80px;
}

/* Header/Topbar Styles */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-hidden {
    margin-left: 0;
}

.header {
    height: 80px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-btn {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.8rem;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: linear-gradient(135deg, rgba(234, 85, 71, 0.1), rgba(253, 198, 44, 0.1));
    border-color: #ea5547;
    color: #ea5547;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 85, 71, 0.2);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ea5547, #fdc62c);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(234, 85, 71, 0.3);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 85, 71, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header {
        padding: 0 1rem;
    }

    .user-info {
        display: none;
    }
}

/* Content Container */
.content-container {
    padding: 2rem;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Header Animations */
@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-header {
    animation: headerSlideIn 0.6s ease-out;
}

.page-title {
    animation: headerSlideIn 0.8s ease-out;
}

.user-profile {
    animation: headerSlideIn 1s ease-out;
}

/* Header Responsive */
@media (max-width: 480px) {
    .dashboard-header {
        height: 70px;
        padding: 0 0.8rem;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .notification-btn {
        padding: 0.6rem;
        font-size: 1rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Large Screen Header Optimization (2198px - 2560px) */
@media (min-width: 2198px) and (max-width: 2560px) {
    .main-content {
        margin-left: 400px;
    }
    
    .header {
        height: 120px;
        padding: 0 4.5rem;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
        border-bottom: 3px solid #f1f5f9;
    }
    
    .page-title {
        font-size: 3rem;
        font-weight: 800;
        letter-spacing: -0.8px;
    }
    
    .header-left {
        gap: 3rem;
    }
    
    .header-right {
        gap: 3rem;
    }
    
    .notification-btn {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
        border-radius: 20px;
        border: 3px solid #e2e8f0;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
    
    .notification-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(234, 85, 71, 0.2);
    }
    
    .notification-badge {
        top: -12px;
        right: -12px;
        font-size: 0.9rem;
        padding: 6px 10px;
        min-width: 26px;
        height: 26px;
    }
    
    .user-menu {
        padding: 1.2rem 2rem 1.2rem 1.2rem;
        border-radius: 20px;
        border: 3px solid #e2e8f0;
        min-height: 80px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }
    
    .user-menu:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(234, 85, 71, 0.15);
        border-color: rgba(234, 85, 71, 0.4);
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        font-size: 1.4rem;
        font-weight: 800;
    }
    
    .user-info {
        gap: 0.5rem;
    }
    
    .user-name {
        font-size: 1.4rem;
        font-weight: 800;
        letter-spacing: 0.4px;
    }
    
    .user-role {
        font-size: 1rem;
        font-weight: 600;
        opacity: 0.8;
    }
}

/* Ultra-wide Screen Header Optimization (2561px+) */
@media (min-width: 2561px) {
    .main-content {
        margin-left: 400px;
    }
    
    .header {
        height: 140px;
        padding: 0 5rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border-bottom: 4px solid #f1f5f9;
    }
    
    .page-title {
        font-size: 3.5rem;
        font-weight: 900;
        letter-spacing: -1px;
    }
    
    .header-left {
        gap: 4rem;
    }
    
    .header-right {
        gap: 4rem;
    }
    
    .notification-btn {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
        border-radius: 24px;
        border: 4px solid #e2e8f0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .notification-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(234, 85, 71, 0.25);
    }
    
    .notification-badge {
        top: -15px;
        right: -15px;
        font-size: 1rem;
        padding: 8px 12px;
        min-width: 30px;
        height: 30px;
        border-radius: 15px;
    }
    
    .user-menu {
        padding: 1.5rem 2.5rem 1.5rem 1.5rem;
        border-radius: 24px;
        border: 4px solid #e2e8f0;
        min-height: 100px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .user-menu:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(234, 85, 71, 0.2);
        border-color: rgba(234, 85, 71, 0.5);
    }
    
    .user-avatar {
        width: 70px;
        height: 70px;
        border-radius: 20px;
        font-size: 1.6rem;
        font-weight: 900;
    }
    
    .user-info {
        gap: 0.7rem;
    }
    
    .user-name {
        font-size: 1.6rem;
        font-weight: 900;
        letter-spacing: 0.5px;
    }
    
    .user-role {
        font-size: 1.2rem;
        font-weight: 700;
        opacity: 0.9;
    }
} 