@charset "utf-8";
/* components/account-shell.css */

/* ==========================================================
   Zwag Account Shell Component
   ========================================================== */

.account-page {
    min-height: 100svh;
    background: var(--color-background);
}


/* ==========================================================
   Sticky Header
   ========================================================== */

.account-page .account-header {
    position: sticky;
    top: 0;
    z-index: 4000;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "main utilities";
    align-items: center;
    gap: 18px;

    width: 100%;
    min-height: 74px;
    padding: 10px clamp(12px, 2.4vw, 28px);

    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(36, 29, 32, 0.08);

    transition:
        transform 0.55s ease,
        box-shadow 0.55s ease,
        background-color 0.55s ease;
}

.account-page .account-header.header-scrolled {
    box-shadow: 0 12px 30px rgba(36, 29, 32, 0.14);
}

.account-page .account-header.header-hidden {
    transform: translateY(-100%);
}


/* ==========================================================
   Header Sections
   ========================================================== */

.account-header__main {
    grid-area: main;
    min-width: 0;
}

.account-header__utilities {
    grid-area: utilities;
    min-width: 0;
}


/* ==========================================================
   Main Navigation
   ========================================================== */

.account-page #nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.account-page #nav > li {
    position: relative;
    min-width: 120px;
    margin: 0;
    padding: 0;
}

.account-page #nav > li > a {
    display: flex;
    min-height: 46px;

    align-items: center;
    justify-content: center;

    padding: 10px 15px;

    color: var(--color-text);
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;

    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        border-radius 0.2s ease;
}


/* Subject and submenu visually join */

.account-page #nav > li:hover > a,
.account-page #nav > li:focus-within > a {
    color: var(--color-primary);

    background: var(--color-surface-soft);

    border-color: var(--color-border);
    border-bottom-color: transparent;

    border-radius:
        var(--radius-md)
        var(--radius-md)
        0
        0;
}

.account-page #nav > li.selected-sub > a,
.account-page #nav > li.selected-page > a {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}


/* ==========================================================
   Submenu
   ========================================================== */

.account-page #nav .submenu,
.account-page #nav > li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 4100;

    display: none;

    width: max-content;
    min-width: 210px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background: var(--color-surface-soft);

    border: 1px solid var(--color-border);
    border-top: 0;

    border-radius:
        0
        0
        var(--radius-md)
        var(--radius-md);

    box-shadow: var(--shadow-md);
}

.account-page #nav > li:hover > .submenu,
.account-page #nav > li:hover > ul,
.account-page #nav > li:focus-within > .submenu,
.account-page #nav > li:focus-within > ul {
    display: grid;
    gap: 4px;
}

.account-page #nav .submenu li,
.account-page #nav > li > ul li {
    margin: 0;
    padding: 0;
}

.account-page #nav .submenu a,
.account-page #nav > li > ul a {
    display: block;

    padding: 10px 12px;

    color: var(--color-text);
    font-size: var(--font-size-sm);
    font-weight: 650;
    text-decoration: none;

    border-radius: var(--radius-sm);
}

.account-page #nav .submenu a:hover,
.account-page #nav > li > ul a:hover {
    color: var(--color-primary);
    background: var(--color-surface);
}

.account-page #nav .submenu .selected-page > a,
.account-page #nav > li > ul .selected-page > a {
    color: #ffffff;
    background: var(--color-primary);
}


/* ==========================================================
   Notifications / Utilities
   ========================================================== */

.account-page .noteNavR {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.account-page .noteNavR li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.account-page .noteNavR a,
.account-page .account-utility-static,
.account-page .account-logout-button {
    display: grid;

    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;

    margin: 0;
    padding: 0;

    place-items: center;

    color: var(--color-text);
    background: var(--color-surface-soft);

    border: 1px solid var(--color-border);
    border-radius: 14px;

    box-shadow: none;
}

.account-page .noteNavR a:hover,
.account-page .account-logout-button:hover {
    border-color: var(--color-primary);
}

.account-page .noteNavR img,
.account-page .account-utility-static img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 11px;
}

.account-page .account-logout-button {
    background:
        var(--color-surface-soft)
        url('../pic/logout.jpg')
        no-repeat
        center
        / cover;

    cursor: pointer;
}


/* ==========================================================
   Main Account Surface
   ========================================================== */

.account-page .content {
    position: relative;

    width: 100%;
    min-height: calc(100svh - 150px);

    padding:
        clamp(34px, 5vw, 64px)
        0
        clamp(60px, 7vw, 96px);

    background:
        linear-gradient(
            180deg,
            var(--color-background),
            var(--color-surface-soft)
        );
}

.account-page .content > * {
    min-width: 0;
}


/* modification just adding , .profile-message-modal -------------------------*/ 
.account-page .content > :not(.profile-page, .profile-message-modal) {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}
/* -------------------------*/ 

/* ==========================================================
   Footer
   ========================================================== */

.account-page .footer {
    width: 100%;
    color: #ffffff;
    background: #241d20;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.account-page .footer a {
    color: rgba(255, 255, 255, 0.88);
}

.account-page .footer a:hover {
    color: #ffffff;
}


/* ==========================================================
   Responsive Header
   ========================================================== */

@media (max-width: 980px) {

    .account-page .account-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "utilities"
            "main";

        align-items: stretch;
    }

    .account-header__utilities {
        display: flex;
        justify-content: flex-end;
    }

    .account-page #nav {
        width: 100%;
    }
}


@media (max-width: 700px) {

    .account-page .account-header {
        padding: 8px 10px;
    }

    .account-page .noteNavR {
        width: 100%;
        justify-content: flex-end;
    }

}


@media (max-width: 460px) {

    .account-page #nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .account-page #nav > li {
        min-width: 0;
    }

    .account-page #nav > li > a {
        width: 100%;
    }

    .account-page #nav .submenu,
    .account-page #nav > li > ul {
        position: static;
        width: 100%;
        min-width: 0;

        border-top: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: none;
    }

    .account-page #nav > li:hover > a,
    .account-page #nav > li:focus-within > a {
        border-bottom-color: var(--color-border);
        border-radius: var(--radius-md);
    }

    .account-page .noteNavR {
        gap: 6px;
    }

    .account-page .noteNavR a,
    .account-page .account-utility-static,
    .account-page .account-logout-button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
	
	.account-page .content > :not(.profile-page, .profile-message-modal) {
        width: 100%;
		padding: 20px 8px;
	}


/* Semantic alias for new account-shell markup. */
.account-shell__content {
    min-width: 0;
}
