/* Global Layout Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.dash-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Changed from row */
    background-color: var(--color-twenty-nine);
}

.dash-bdy {
    width: 100%;
    /* overflow-y: auto; handled by body usually but keeping structure */
    flex: 1;
}

/* --- HEADER STYLES --- */
.dash-header {
    height: 113px;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #EBEBEB;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 40px;
}

.dash-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

/* Left: Logo */
.dash-header-left {
    display: flex;
    align-items: center;
}

.dash-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 4px;
}

.header-logo-img {
    height: 57px;
    width: auto;
}

.header-logo-text {
    font-family: 'Inter_18pt-Bold';
    font-size: 10px;
    color: var(--color-two);
    /* Blue brand color */
    letter-spacing: 0.5px;
}

/* Center: Navigation Pill */
.dash-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav {
    display: flex;
    align-items: center;
    background-color: #F5F5F7;
    border-radius: 12px;
    padding: 6px;
    gap: 8px;
}

.header-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: #344054;
    font-family: 'Inter_28pt-SemiBold';
    font-size: 15px;
    transition: all 0.2s ease;
}

.header-nav-link:hover {
    background-color: #ECECED;
}

.header-nav-link.active {
    background-color: #1452CA;
    color: #ffffff;
    font-family: 'Inter_18pt-Bold';
}

.header-nav-link .nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-nav-link .nav-icon img {
    width: 100%;
    height: 100%;
    /* Default inactive color: #252525 */
    filter: brightness(0) saturate(100%) invert(11%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(97%) contrast(89%);
}

/* Filter for active state: #FDFDFD (basically white) */
.header-nav-link.active .nav-icon img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(101%) contrast(100%);
}


/* Right: User Actions */
.dash-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-header-avatar {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.dash-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.dash-logout-icon {
    width: 20px;
    height: 20px;
}

.dash-logout-tle {
    font-family: 'Inter_18pt-Bold';
    font-size: 16px;
    color: #D32F2F;
    /* Red logout color */
}


/* Mobile Handling */
.nav-icon2 {
    display: none;
    /* Hidden on desktop */
}


/* Responsive */
@media only screen and (max-width: 1024px) {
    .header-nav-link span {
        display: none;
        /* Hide text, keep icons on smaller screens */
    }

    .header-nav-link {
        padding: 10px 12px;
    }
}

@media only screen and (max-width: 768px) {
    .dash-header-center {
        display: none;
        /* Hide center nav on mobile, fallback to hamburger menu */
    }

    .nav-icon2 {
        display: block;
        cursor: pointer;
        width: 20px;
        height: 20px;
    }

    .nav-icon2 span:nth-child(3),
    .nav-icon2 span:nth-child(4) {
        top: 6px;
    }

    .nav-icon2 span:nth-child(5),
    .nav-icon2 span:nth-child(6) {
        top: 12px;
    }

    .dash-logout {
        display: none;
        /* Hide explicitly logout button, likely inside hamburger menu now */
    }

    .dash-header-right {
        gap: 16px;
    }

    .dash-header-avatar {
        display: none;
    }

    .dash-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 62px;
        width: 100%;
        padding: 0 16px;
        background-color: #ffffff;
        border-bottom: 1px solid #EBEBEB;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-logo-img {
        height: 32px;
    }
}

/* Logout Modal (Keep existing) */
.logout-container {
    display: flex;
    flex-direction: column;
    box-shadow: 16px 16px 56px 0px var(--color-thirty);
    width: 400px;
    background-color: var(--color-six);
    padding: 40px 0;
    border-radius: 8px;
    margin-left: 16px;
    margin-right: 16px;
    box-sizing: content-box;
}

.logout-icon {
    border-radius: 50%;
    height: 72px;
    width: 72px;
    background-color: var(--color-thirty-one);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 16px;
}

.logout-icon>img {
    width: 32.5px;
    height: 27.5px;
}

.logout-tle {
    font-size: 20px;
    font-family: 'Inter_18pt-Bold';
    color: var(--color-four);
    margin: auto;
    margin-bottom: 4px;
    text-align: center;
}

.logout-subtle {
    line-height: 22.4px;
    text-align: center;
    font-size: 16px;
    color: var(--color-three);
    margin: auto;
    margin-bottom: 40px;
}

.logout-actions {
    display: flex;
    flex-direction: column;
    padding: 0 32px;
}

.y-log-out {
    background-color: var(--color-twenty-two);
    height: 46px;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter_18pt-Bold';
    color: var(--secondary-color);
    cursor: pointer;
    width: 100%;
    margin-bottom: 16px;
}

.n-log-out {
    border-radius: 8px;
    border: none;
    background-color: transparent;
    font-family: 'Inter_18pt-Bold';
    font-size: 16px;
    height: 46px;
    cursor: pointer;
    width: 100%;
}

@media only screen and (max-width: 550px) {
    .logout-container {
        padding: 20px 0;
    }

    .y-log-out,
    .n-log-out {
        height: 41px;
    }


}

.dash-inner-section {
    padding-left: var(--desktop-dash-padding);
    padding-right: var(--desktop-dash-padding);
    padding-top: 40px;
}