/**
 * Nusa WA Verification — Client Area Stylesheet
 *
 * Class prefix: mod-nusawa-  (NusaWaVerification)
 * No Bootstrap classes are used anywhere in this stylesheet.
 *
 * Loaded on all pages (client area and admin) via ClientAreaHeadOutput
 * and AdminAreaHeadOutput hooks.
 *
 * Contains: Design tokens (:root), verification banner, account details badge,
 *           admin profile tab badge.
 */

/*
 * Tokens on :root make them available to body-level components (modal, toast)
 * that JS relocates outside the module root wrapper. The same tokens on
 * .mod-nusawa-root / .mod-nusawa-admin-wrap allow future per-surface overrides.
 */
:root,
.mod-nusawa-admin-wrap,
.mod-nusawa-root {
    --mod-primary:         #2a7cc7;
    --mod-text:            #2f3a4a;
    --mod-muted:           #566074;
    --mod-border:          #e3e7ee;
    --mod-card-bg:         #ffffff;
    --mod-card-header-bg:  #f4f6f9;
    --mod-success:         #2f9e44;
    --mod-danger:          #c92a2a;
    --mod-warning:         #e8a700;
    --mod-warning-strong:  #f06a00;
    --mod-neutral:         #6b778f;
    --mod-info:            #1d4ed8;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. Verification banner (client area)
   Uses .mod-nusawa-root as the surface root for design tokens.
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mod-nusawa-root.mod-nusawa-banner {
    background: linear-gradient(90deg, #e05252, #c0392b);
    color: #fff;
    padding: 10px 0;
}

.mod-nusawa-banner-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mod-nusawa-banner-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 200px;
    min-width: 0;
}

.mod-nusawa-banner-msg .material-symbols-rounded {
    flex-shrink: 0;
    font-size: 22px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.mod-nusawa-banner-text { line-height: 1.4; font-size: 14px; }

.mod-nusawa-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mod-nusawa-verify-btn {
    appearance: none;
    background: #fff;
    color: #c0392b;
    border: none;
    padding: 5px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.15s;
}
.mod-nusawa-verify-btn:hover { opacity: .85; }

.mod-nusawa-banner-form { display: inline; margin: 0; }

.mod-nusawa-cap { font-size: 12px; opacity: .85; white-space: nowrap; }

#mod-nusawa-dismiss {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    opacity: .8;
    transition: opacity 0.15s;
}
#mod-nusawa-dismiss:hover { opacity: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. Account Details badge (client area — help-block replacement)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mod-nusawa-wa-badge {
    margin-top: 10px;
    margin-bottom: 0;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 8px 12px;
    display: block;
}

.mod-nusawa-wa-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
}

.mod-nusawa-wa-badge-label .material-symbols-rounded {
    font-size: 13px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.mod-nusawa-wa-badge-meta {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    color: #566074;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. Admin client profile tab
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.mod-nusawa-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.mod-nusawa-profile-badge .material-symbols-rounded {
    font-size: 13px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.mod-nusawa-profile-verified   { background: #dcfce7; color: #166534; }
.mod-nusawa-profile-unverified { background: #fff3cd; color: #92500a; }
.mod-nusawa-profile-nophone    { background: #f1f3f8; color: #6b778f; }
.mod-nusawa-profile-meta       { display: block; margin-top: 4px; font-size: 12px; color: #566074; }

/* Banner: stack on narrow */
@media (max-width: 640px) {
    .mod-nusawa-banner-msg     { flex-basis: 100%; }
    .mod-nusawa-banner-actions { width: 100%; justify-content: center; }
}

/* Modal: bottom-sheet on mobile */
@media (max-width: 576px) {
    .mod-nusawa-modal-backdrop {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .mod-nusawa-modal {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: calc(100dvh - 12px);
        transform: translateY(100%);
    }

    .mod-nusawa-modal-backdrop.show .mod-nusawa-modal { transform: translateY(0); }

    .mod-nusawa-modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }

    .mod-nusawa-modal-footer {
        flex-direction: column-reverse;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .mod-nusawa-modal-footer .mod-nusawa-btn,
    .mod-nusawa-modal-close { min-height: 44px; }

    .mod-nusawa-btn { min-height: 44px; }
}

/* Toast: full-width on mobile */
@media (max-width: 576px) {
    .mod-nusawa-toast-container {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        left: 12px;
    }

    .mod-nusawa-toast { width: 100%; max-width: none; }

    .mod-nusawa-toast-close { min-width: 44px; min-height: 44px; }
}
