/* public/assets/css/modals.css */

/* --- Settings Modal --- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 16, 22, 0.54); backdrop-filter: blur(2px);
    z-index: 50; display: none; align-items: center; justify-content: center; padding: 36px;
    opacity: 0; transition: opacity 0.2s var(--ease);
}
.modal-backdrop.is-open { display: flex; opacity: 1; }

.settings-modal {
    width: min(1120px, 92vw); height: min(760px, 88vh);
    background: var(--panel); border-radius: 6px; box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
    display: grid; grid-template-columns: 260px 1fr; overflow: hidden; position: relative;
    transform: scale(0.98) translateY(10px); transition: transform 0.2s var(--ease);
}
.modal-backdrop.is-open .settings-modal { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute; top: 15px; right: 15px; width: 32px; height: 32px;
    border: 0; background: transparent; border-radius: 8px; color: var(--muted);
    cursor: pointer; display: grid; place-items: center; transition: background 160ms;
}
.modal-close:hover { background: var(--hover); color: var(--text); }

.settings-side { background: var(--bg); border-right: 1px solid var(--border); padding: 18px 12px; }
.settings-group-title { color: var(--muted-2); font-size: 13px; font-weight: 700; margin: 0 0 6px 8px; }
.settings-nav-item {
    min-height: 34px; border-radius: 7px; display: flex; align-items: center; gap: 9px;
    padding: 0 10px; color: var(--text-muted); font-size: 15px; font-weight: 600; margin-bottom: 3px;
    cursor: pointer; transition: background 160ms;
}
.settings-nav-item:hover { background: var(--hover); color: var(--text); }
.settings-nav-item.active { background: var(--active); color: var(--primary); font-weight: 700; }
.settings-nav-item .material-symbols-rounded { font-size: 18px; color: var(--muted); }
.settings-nav-item.active .material-symbols-rounded { color: var(--primary); }

.settings-content { padding: 52px 150px 60px 150px; overflow: auto; }
.settings-title { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.04em; color: var(--text); }
.settings-subtitle { margin: 0 0 44px; font-size: 17px; color: var(--text); }

.preference-section { margin-bottom: 38px; }
.preference-section h3 { font-size: 17px; margin: 0 0 14px; color: var(--text); }
.preference-row {
    border-top: 1px solid var(--border); min-height: 72px; display: grid;
    grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 16px 0;
}
.preference-label { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.preference-description { color: var(--text-muted); font-size: 14px; line-height: 1.45; }

.select-pill {
    border: 1px solid var(--border); background: var(--panel); border-radius: 7px;
    padding: 7px 12px; min-width: 88px; font-weight: 700; color: var(--text); cursor: pointer; transition: background 160ms;
}
.select-pill:hover { background: var(--hover); }

.toggle {
    width: 36px; height: 21px; border-radius: 999px; border: 0; background: var(--muted-2);
    position: relative; cursor: pointer; transition: background 0.2s;
}
.toggle::after {
    content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%;
    background: #fff; top: 2px; left: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.14); transition: left 0.2s;
}
.toggle.on { background: var(--primary); }
.toggle.on::after { left: 17px; }

@media (max-width: 760px) {
    .settings-modal { grid-template-columns: 1fr; height: 92vh; }
    .settings-side { display: none; }
    .settings-content { padding: 44px 24px; }
}

.swepearl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 252, 0.80) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px;
}
.swepearl-modal-overlay.is-active {
    opacity: 1;
}

.swepearl-modal-card {
    background: var(--panel, #ffffff);
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    padding: 28px 28px 24px 28px;
    text-align: left;
    border: none;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 8px 20px -4px rgba(0, 0, 0, 0.06),
        0 20px 44px -8px rgba(0, 0, 0, 0.08),
        0 40px 80px -16px rgba(0, 0, 0, 0.09);
    transform: translateY(-20px) scale(0.97);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 800px);
    box-sizing: border-box;
    overflow: hidden;
}
.swepearl-modal-card.modal-large {
    max-width: 880px;
    width: 92vw;
    max-height: 90vh;
}
.swepearl-modal-card.modal-large .swepearl-modal-message {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.swepearl-modal-overlay.is-active .swepearl-modal-card {
    transform: translateY(0) scale(1);
}

.swepearl-modal-icon {
    font-size: 56px;
    margin: 0 0 18px 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.swepearl-modal-icon.info { color: rgb(38, 38, 38); }
.swepearl-modal-icon.success { color: var(--success); }
.swepearl-modal-icon.error { color: var(--danger); }
.swepearl-modal-icon.warning { color: #d97706; } /* Warm orange for warnings */

.swepearl-modal-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: var(--text-strong, #111827);
    font-weight: 700;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.swepearl-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1;
}

.swepearl-modal-badge.badge-purple {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #e9d5ff;
}

.swepearl-modal-badge.badge-blue {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.swepearl-modal-message {
    margin: 0 0 20px 0;
    font-size: 13.5px;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
    text-align: left;
}

.swepearl-modal-message strong {
    font-weight: 600;
    color: var(--text-strong);
}

/* --- Checkbox Group Grid & Summary Styling --- */
.swepearl-checkbox-group-grid-wrapper {
    margin-top: 12px;
    padding: 20px;
    background: var(--swepearl-hover-color, var(--hover));
    border-radius: 16px;
    position: relative;
}

.swepearl-checkbox-group-grid-header {
    margin-bottom: 16px;
}

.swepearl-checkbox-group-grid-title {
    font-size: 16px;
    color: var(--text-strong);
    font-weight: 600;
}

.swepearl-checkbox-group-select-all {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    padding: 0;
}
.swepearl-checkbox-group-select-all:hover {
    opacity: 0.7;
}

.swepearl-checkbox-group-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
    margin-right: -8px; /* Offset padding for scrollbar alignment */
    
    /* Elegant CSS-only scroll shadows (Lea Verou technique) */
    background: 
        linear-gradient(var(--swepearl-hover-color, var(--hover)) 30%, rgba(255,255,255,0)),
        linear-gradient(rgba(255,255,255,0), var(--swepearl-hover-color, var(--hover)) 70%) 0 100%,
        radial-gradient(farthest-side at 50% 0, rgba(0,0,0,0.1), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,0.1), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-color: var(--swepearl-hover-color, var(--hover));
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
    
    /* Styling scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--border, #eaeaea) transparent;
}
.swepearl-checkbox-group-grid::-webkit-scrollbar {
    width: 6px;
}
.swepearl-checkbox-group-grid::-webkit-scrollbar-track {
    background: transparent;
}
.swepearl-checkbox-group-grid::-webkit-scrollbar-thumb {
    background-color: var(--border, #eaeaea);
    border-radius: 999px;
}

.swepearl-checkbox-group-summary {
    align-items: flex-start;
    gap: 16px;
    margin-top: 12px;
    padding: 20px;
    background: var(--swepearl-hover-color, var(--hover));
    border: none;
    border-radius: 16px;
    position: relative;
}

.swepearl-checkbox-group-summary-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-strong);
    line-height: 1.5;
    text-align: left;
}

.swepearl-checkbox-group-edit-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    color: var(--text-strong);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.swepearl-checkbox-group-edit-btn:hover {
    opacity: 0.7;
}

.swepearl-checkbox-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.2s ease;
    user-select: none;
}
.swepearl-checkbox-group-label:hover {
    opacity: 0.8;
}

.swepearl-checkbox-group-label-text {
    font-size: 13px;
    color: var(--text-strong);
    line-height: 1;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.swepearl-checkbox-group-summary-title {
    color: var(--text-strong, #1c1e2e);
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    padding-right: 32px;
}

.swepearl-checkbox-group-summary-val {
    padding-right: 32px;
}

.swepearl-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: stretch;
    width: 100%;
    margin-top: 20px;
}

.swepearl-modal-btn {
    flex: 1;
    padding: 0 18px;
    height: 42px;
    min-height: 42px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.swepearl-modal-btn:active {
    transform: scale(0.97);
}
.swepearl-modal-btn-primary {
    background: var(--text-strong);
    color: var(--bg);
}
.swepearl-modal-btn-primary:hover {
    background: var(--text);
}
.swepearl-modal-btn-danger {
    background: var(--danger);
    color: #fff;
}
.swepearl-modal-btn-danger:hover {
    background: var(--danger-hover);
}
.swepearl-modal-btn-secondary {
    background: var(--swepearl-hover-color);
    border: none;
    color: var(--text-strong);
}
.swepearl-modal-btn-secondary:hover {
    filter: brightness(0.95);
}
.swepearl-modal-btn:disabled {
    background: var(--stroke) !important;
    color: var(--text-muted) !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none;
}

/* Progress bar specific styles */
.swepearl-progress-container {
    width: 100%;
    background: var(--hover);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    margin: 20px 0;
}
.swepearl-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.3s var(--ease);
}

/* --- 2FA Help Modal text styling --- */
.help-desc-intro {
    margin-bottom: 12px;
}
.help-desc-list {
    text-align: left;
    margin: 0 auto 16px auto;
    max-width: 280px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
.help-desc-outro {
    margin-bottom: 16px;
}

/* --- 2FA Authenticator App Cards --- */
.auth-app-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    text-align: left;
}
.auth-app-card {
    background: var(--surface-secondary, #f8fafc);
    border: 1px solid var(--stroke, #e2e8f0);
    border-radius: var(--r-md, 8px);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dark-theme .auth-app-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
.auth-app-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.auth-app-icon {
    font-size: 18px;
    color: var(--text-muted, #64748b);
    flex-shrink: 0;
}
.auth-app-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-strong, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark-theme .auth-app-name {
    color: #f1f5f9;
}
.auth-app-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.auth-app-buttons .btn {
    font-size: 11px;
    padding: 3px 8px;
    height: 26px;
    line-height: 1;
    text-decoration: none;
}

/* --- Session Paused Modal (MFA Verification) --- */
.swepearl-session-paused-modal {
    background: #ffffff !important;
    color: #1c1e2e !important;
    border: none !important;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 8px 20px -4px rgba(0, 0, 0, 0.06),
        0 20px 44px -8px rgba(0, 0, 0, 0.08),
        0 40px 80px -16px rgba(0, 0, 0, 0.09) !important;
    max-width: 440px !important;
    padding: 40px 36px !important;
    border-radius: 16px !important;
    text-align: center;
}

.swepearl-session-paused-modal .lock-clock-icon {
    font-size: 56px;
    color: #1c1e2e;
    margin-bottom: 20px;
    display: inline-block;
}

.swepearl-session-paused-modal .swepearl-modal-title {
    color: #1c1e2e !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    letter-spacing: -0.03em !important;
}

.swepearl-session-paused-modal .swepearl-modal-message {
    color: #57534d !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 28px !important;
}

/* 6-digit OTP code input grid */
.swepearl-otp-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.swepearl-otp-cell {
    width: 48px;
    height: 56px;
    background: #f5f6fa;
    border: 1px solid #e6e9f2;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #1c1e2e;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.swepearl-otp-cell::placeholder {
    color: #a6acc8;
    opacity: 0.7;
}

.swepearl-otp-cell:focus {
    border-color: #3b429f;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 66, 159, 0.15);
}

.swepearl-otp-cell.is-error {
    border-color: #e03e5c;
    background-color: #fdf3f3;
    box-shadow: 0 0 0 3px rgba(224, 62, 92, 0.15);
}

/* Shake Animation for Invalid OTP */
@keyframes swepearl-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.swepearl-shake {
    animation: swepearl-shake 0.4s ease;
}

/* Buttons in Session Paused Modal */
.swepearl-session-paused-modal .swepearl-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: stretch;
    width: 100%;
}

.swepearl-session-paused-modal .swepearl-modal-btn {
    flex: 1;
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.swepearl-session-paused-modal .swepearl-modal-btn-secondary {
    background: transparent;
    border: 1px solid #e6e9f2;
    color: #1c1e2e;
}

.swepearl-session-paused-modal .swepearl-modal-btn-secondary:hover {
    background: #f5f6fa;
    border-color: #cbd2e8;
}

.swepearl-session-paused-modal .swepearl-modal-btn-primary {
    background: #3b429f;
    color: #ffffff;
    border: none;
}

.swepearl-session-paused-modal .swepearl-modal-btn-primary:hover {
    background: #2a2f7c;
}

.swepearl-session-paused-modal .swepearl-modal-btn-primary:disabled {
    background: #cbd2e8;
    color: #ffffff;
    cursor: not-allowed;
}

/* Error message underneath the input grid */
.swepearl-otp-error-text {
    color: #e03e5c;
    font-size: 14px;
    font-weight: 600;
    margin-top: -16px;
    margin-bottom: 20px;
    min-height: 20px;
    text-align: center;
}

/* --- Right-Side Peek Drawer (State C Guide Panel) --- */
.swepearl-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 16, 22, 0.32);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}

.swepearl-drawer-overlay.is-active {
    opacity: 1;
}

.swepearl-drawer-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    height: 100%;
    box-shadow: -12px 0 42px rgba(15, 16, 22, 0.14);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid #e6e9f2;
    box-sizing: border-box;
}

.swepearl-drawer-overlay.is-active .swepearl-drawer-card {
    transform: translateX(0);
}

.swepearl-drawer-close-btn {
    position: absolute;
    top: 24px;
    left: 28px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e6e9f2;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 160ms var(--ease);
    z-index: 10;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.swepearl-drawer-close-btn:hover {
    background: #f5f6fa;
    color: #1c1e2e;
    border-color: #cbd2e8;
    transform: scale(1.05);
}

.swepearl-drawer-close-btn:active {
    transform: scale(0.95);
}

.swepearl-drawer-content {
    padding: 88px 36px 40px 36px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

/* Feature card transitions in Unlicensed Page (State A) */
.unlicensed-landscape-card .feature-card {
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease) !important;
}

.unlicensed-landscape-card .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(35, 32, 26, 0.05);
    border-color: #cbd2e8 !important;
}
/* --- Modal Form Controls --- */
.swepearl-modal-form {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.swepearl-modal-form .swepearl-modal-actions {
    margin-top: 24px;
    padding-top: 16px;
    flex-shrink: 0;
}
.swepearl-modal-scroll-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 8px 0;
    padding: 0;
}
.swepearl-modal-form-body {
    flex: 1;
    min-height: 0;
}
.swepearl-modal-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-strong);
}
.swepearl-modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.swepearl-modal-input {
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    font-size: 13.5px;
    background: var(--hover, #f8fafc);
    color: var(--text-strong);
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.swepearl-modal-input-wrapper .swepearl-modal-input {
    padding-right: 38px;
}

.swepearl-modal-input:focus {
    outline: none;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow: none;
}

.swepearl-modal-input-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    transition: background 0.15s ease, color 0.15s ease;
    padding: 0;
    margin: 0;
    outline: none;
    z-index: 2;
}

.swepearl-modal-input-clear-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    color: var(--text-strong, #111827);
}

.swepearl-modal-input-clear-btn .material-symbols-rounded {
    font-size: 14px;
    line-height: 1;
}

select.swepearl-modal-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%2364748b" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 36px;
    cursor: pointer;
}

/* Custom radio-like checkboxes for the data-points grid */
.swepearl-checkbox-group-grid input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid var(--text-strong);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    outline: none;
    background: transparent;
    transition: all 0.2s var(--ease);
}

.swepearl-checkbox-group-grid input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--text-strong);
    border-radius: 50%;
}

/* --- Reusable Modal Message UI Components --- */
.swepearl-modal-info-card {
    background: var(--panel-hover, #f3f4f6);
    padding: 16px;
    border-radius: 17px;
    margin-bottom: 16px;
    font-size: 13px;
    text-align: left;
    color: var(--text-main);
    border: none !important;
}
.swepearl-modal-alert-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.swepearl-modal-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.swepearl-modal-info-row .label {
    color: var(--text-muted, #6b7280);
}
.swepearl-modal-info-row .value {
    font-family: monospace;
    color: var(--text-strong);
}
.swepearl-modal-highlight-box {
    padding: 16px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 17px;
    font-size: 12.5px;
    color: var(--text-main);
    line-height: 1.45;
    text-align: left;
}
.swepearl-modal-alert-box {
    padding: 16px;
    border-radius: 17px;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 16px;
    border: none !important;
}
.swepearl-modal-alert-box.warning {
    background: rgba(234, 179, 8, 0.08);
    color: #a16207;
}
.swepearl-modal-alert-box.success {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
}
.swepearl-modal-p-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    margin-top: 0;
}
.swepearl-modal-p-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    margin-top: 0;
    line-height: 1.4;
}

/* Scroll indicator banner */
.swepearl-modal-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(38, 38, 38, 0.9);
    color: #fff;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    bottom: 112px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.swepearl-modal-scroll-indicator.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

@keyframes bounceDownward {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
.swepearl-modal-scroll-indicator .bounce-arrow {
    animation: bounceDownward 1.2s infinite ease-in-out;
    font-size: 14px;
}
