/* ========================================
   DASHBOARD HEADER COMPONENT
   Full width header with logo and user greeting
   ======================================== */

.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1010;
    /* Higher than sidebar */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Prevent content from pushing header width */
}

/* Logo Section */
.header-logo {
    flex: 0 0 200px;
    /* Fixed width to help centering the middle part */
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: translateX(3px);
    text-decoration: none;
}

.header-logo img.header-brand-logo {
    height: 45px;
    width: auto;
    margin-right: 12px;
}

@media (max-width: 768px) {
    .header-logo img.header-brand-logo {
        height: 35px;
    }
}

.header-logo-text {
    font-family: 'Atma', cursive;
    font-size: 34px;
    font-weight: 700;
    color: #d47009;
    margin: 0;
    white-space: nowrap;
}

/* User Greeting Section (Centered) */
.header-center-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

/* Right Actions */
.header-right-actions {
    flex: 0 0 200px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.header-user-greeting {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--dark);
    margin: 0;
}

.header-user-greeting span {
    color: var(--primary);
}

.header-user-avatar-wrapper {
    position: relative;
    width: 45px;
    height: 45px;
}

.header-user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.header-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(40, 120, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

/* Mobile Toggle overrides */
.dashboard-header .sidebar-toggle-btn {
    display: none;
    position: relative;
    top: 0;
    right: 0;
    z-index: 1020;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 120, 235, 0.3);
    margin-left: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .header-logo {
        flex: 0 0 auto;
    }

    .header-right-actions {
        flex: 0 0 auto;
    }
}

@media (max-width: 992px) {
    .dashboard-header {
        padding: 0 15px;
        height: 70px;
    }

    .header-center-info {
        position: static;
        transform: none;
        left: auto;
        flex: 1;
        justify-content: center;
        gap: 10px;
        margin: 0 10px;
    }

    .dashboard-header .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-user-greeting {
        font-size: 0.95rem;
    }

    .header-user-avatar-wrapper {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .header-user-greeting {
        display: none;
    }
}

@media (max-width: 576px) {
    .header-logo-text {
        display: none;
    }

    .header-logo i {
        margin-right: 0;
        font-size: 28px;
    }
}