/* User shell — extends the shared admin shell behavior with member branding. */

body.user-body {
    --admin-blue: #c96f32;
    --admin-blue-soft: #fff3ea;
}

/* Bootstrap's scrollbar compensation can accumulate after Livewire navigation.
   Keep the member shell flush with the viewport while a modal is open. */
body.user-body.modal-open {
    padding-right: 0 !important;
}

body.user-body #sidebar .sidebar-brand-admin,
body.user-body #sidebar .sidebar-brand-short-admin {
    color: #c96f32;
}

body.user-body #sidebar .sidebar-menu--home { --menu-accent: #c96f32; }
body.user-body #sidebar .sidebar-menu--profile { --menu-accent: #5b6eae; }
body.user-body #sidebar .sidebar-menu--cart { --menu-accent: #d4a017; }
body.user-body #sidebar .sidebar-menu--history { --menu-accent: #6b7f96; }
body.user-body #sidebar .sidebar-menu--documents { --menu-accent: #3d8b8b; }
body.user-body #sidebar .sidebar-menu--question { --menu-accent: #7c6b9e; }
body.user-body #sidebar .sidebar-menu--settings { --menu-accent: #4a8fb8; }
body.user-body #sidebar .sidebar-menu--login { --menu-accent: #c96f32; }
body.user-body #sidebar .sidebar-menu--register { --menu-accent: #5a8f5a; }

body.user-body #sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.user-body #sidebar .sidebar-menu--home-primary {
    margin-bottom: 0;
}

body.user-body #sidebar .sidebar-group + .sidebar-group,
body.user-body #sidebar .sidebar-group--footer {
    margin-top: 0;
    padding-top: 0;
}

body.user-body #sidebar .sidebar-group.auth-sidebar-account {
    padding-top: 0.65rem;
}

body.user-body #sidebar .sidebar-section-label {
    min-height: 38px;
    margin: 0;
    padding: 0.42rem 0.45rem;
    font-size: 0.78rem;
    line-height: 1.5;
    letter-spacing: 0;
}

body.user-body #sidebar .sidebar-section-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
}

body.user-body #sidebar .sidebar-section-icon svg {
    width: 17px;
    height: 17px;
}

body.user-body main.admin-main .user-content {
    background: #fffaf6;
}

body.user-body main.admin-main .user-content--seminar-documents {
    background: #fff;
}

body.guest-body #admin-nav .guest-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

body.auth-body #admin-nav .auth-nav-action,
body.guest-body #admin-nav .auth-nav-action {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(201, 111, 50, 0.2);
    border-radius: 7px;
    color: #a94f20;
    background: #fff8f2;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

body.auth-body #admin-nav .auth-nav-action:hover,
body.guest-body #admin-nav .auth-nav-action:hover {
    color: #8b3f18;
    background: #fff0e5;
    border-color: rgba(201, 111, 50, 0.34);
}

body.auth-body main.admin-main .auth-content {
    padding: 0;
    background: #fffaf6;
}

body.auth-body main.admin-main .auth-content > #login,
body.auth-body main.admin-main .auth-content > #register,
body.auth-body main.admin-main .auth-content > #forget-password {
    min-height: 100%;
}

body.auth-body #forget-password > .content {
    min-height: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

body.guest-body #sidebar .sidebar-menu--login {
    --menu-accent: #c96f32;
}

body.guest-body #sidebar .sidebar-menu--register {
    --menu-accent: #4f74a3;
}

body.user-body #home-page.home-page {
    margin: -1rem -1.35rem -1.5rem;
}

@media (max-width: 768px) {
    body.auth-body #admin-nav .auth-nav-action-label,
    body.guest-body #admin-nav .auth-nav-action-label {
        display: none;
    }

    body.auth-body #admin-nav .auth-nav-action,
    body.guest-body #admin-nav .auth-nav-action {
        width: 30px;
        justify-content: center;
        padding-right: 0;
        padding-left: 0;
    }

    body.user-body #home-page.home-page {
        margin: -1rem -0.85rem -1.25rem;
    }
}
