/* ═══════════════════════════════════════════════════════════════════
   Auth Pages — NudgeFlow
   Apple-inspired, minimal, centered card layout
   ═══════════════════════════════════════════════════════════════════ */

/* ── Container ─────────────────────────────────────────────────── */

.nf-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
    background: var(--nf-bg, #F7F8FA);
}

.nf-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--nf-surface, #fff);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(42, 14, 92, 0.08);
    border: 1px solid var(--nf-border, #E0E3E9);
    animation: authFadeIn 0.4s ease-out;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ────────────────────────────────────────────────────── */

.nf-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.nf-auth-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.nf-auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nf-text, #1C1C28);
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.nf-auth-subtitle {
    font-size: 0.9rem;
    color: var(--nf-text-muted, #515165);
    margin: 0;
    line-height: 1.5;
}

/* ── Form Fields ───────────────────────────────────────────────── */

.nf-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.nf-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nf-auth-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nf-text-muted, #515165);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nf-auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--nf-text, #1C1C28);
    background: var(--nf-bg, #F7F8FA);
    border: 1.5px solid var(--nf-border, #E0E3E9);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.nf-auth-input::placeholder {
    color: #A0A3B1;
}

.nf-auth-input:focus {
    border-color: var(--nf-accent-pink, #FF0F6F);
    box-shadow: 0 0 0 3px rgba(255, 15, 111, 0.1);
    background: #fff;
}

.nf-auth-input.nf-auth-input-error {
    border-color: var(--nf-error, #E64A4A);
    box-shadow: 0 0 0 3px rgba(230, 74, 74, 0.1);
}

/* Password visibility toggle */
.nf-auth-input-wrapper {
    position: relative;
}

.nf-auth-input-wrapper .nf-auth-input {
    padding-right: 2.75rem;
}

.nf-auth-toggle-pw {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nf-text-muted, #515165);
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.nf-auth-toggle-pw:hover {
    opacity: 1;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.nf-auth-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #FF0F6F, #FF7A30);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nf-auth-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 15, 111, 0.3);
}

.nf-auth-btn:active:not(:disabled) {
    transform: translateY(0);
}

.nf-auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nf-auth-btn-secondary {
    background: var(--nf-primary, #2A0E5C);
}

.nf-auth-btn-secondary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(42, 14, 92, 0.3);
}

/* Loading spinner inside button */
.nf-auth-btn .nf-auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
    margin-right: 0.5rem;
}

.nf-auth-btn.nf-auth-loading .nf-auth-spinner {
    display: inline-block;
}

.nf-auth-btn.nf-auth-loading .nf-auth-btn-label {
    opacity: 0.8;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* ── Divider ───────────────────────────────────────────────────── */

.nf-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.nf-auth-divider::before,
.nf-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--nf-border, #E0E3E9);
}

.nf-auth-divider span {
    font-size: 0.8rem;
    color: var(--nf-text-muted, #515165);
    white-space: nowrap;
}

/* ── Google Sign-In ────────────────────────────────────────────── */

.nf-google-btn-container {
    display: flex;
    justify-content: center;
    margin: 0.25rem 0 0.5rem;
}

.nf-google-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 9999px;
    background: #fff;
    color: #3c4043;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.nf-google-oauth-btn:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.nf-google-oauth-btn:active {
    background: #eef0f1;
}

.nf-google-oauth-btn svg {
    flex-shrink: 0;
}

/* ── Links ─────────────────────────────────────────────────────── */

.nf-auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    color: var(--nf-text-muted, #515165);
}

.nf-auth-link {
    color: var(--nf-primary, #2A0E5C);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nf-auth-link:hover {
    color: var(--nf-accent-pink, #FF0F6F);
}

.nf-auth-forgot {
    display: block;
    text-align: right;
    font-size: 0.82rem;
    margin-top: -0.25rem;
}

/* ── Messages (success/error) ──────────────────────────────────── */

.nf-auth-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    animation: authFadeIn 0.3s ease-out;
}

.nf-auth-message-error {
    background: rgba(230, 74, 74, 0.08);
    color: var(--nf-error, #E64A4A);
    border: 1px solid rgba(230, 74, 74, 0.15);
}

.nf-auth-message-success {
    background: rgba(44, 201, 143, 0.08);
    color: #1a8a5e;
    border: 1px solid rgba(44, 201, 143, 0.15);
}

.nf-auth-message-info {
    background: rgba(45, 140, 255, 0.08);
    color: var(--nf-info, #2D8CFF);
    border: 1px solid rgba(45, 140, 255, 0.15);
}

.nf-auth-message:empty {
    display: none;
}

/* ── Password Strength Indicator ───────────────────────────────── */

.nf-auth-pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 0.25rem;
}

.nf-auth-pw-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--nf-border, #E0E3E9);
    transition: background 0.3s ease;
}

.nf-auth-pw-bar.nf-pw-weak   { background: var(--nf-error, #E64A4A); }
.nf-auth-pw-bar.nf-pw-fair   { background: var(--nf-warning, #FFB444); }
.nf-auth-pw-bar.nf-pw-good   { background: #7BC67E; }
.nf-auth-pw-bar.nf-pw-strong { background: var(--nf-success, #2CC98F); }

.nf-auth-pw-label {
    font-size: 0.75rem;
    color: var(--nf-text-muted, #515165);
    margin-top: 0.15rem;
    text-align: right;
}

/* ── Email Verification Banner ─────────────────────────────────── */

.nf-auth-verify-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, rgba(255, 15, 111, 0.06), rgba(255, 122, 48, 0.06));
    border: 1px solid rgba(255, 15, 111, 0.15);
    border-radius: 14px;
    font-size: 0.85rem;
    color: var(--nf-text, #1C1C28);
    animation: bannerFadeIn 0.3s ease-out;
}

.nf-auth-verify-banner svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--nf-accent-pink, #FF0F6F);
}

.nf-auth-verify-banner .nf-auth-link {
    font-size: 0.85rem;
}

/* ── Success State (check animation) ──────────────────────────── */

.nf-auth-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(44, 201, 143, 0.1), rgba(44, 201, 143, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: authScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nf-auth-success-icon svg {
    width: 28px;
    height: 28px;
    color: var(--nf-success, #2CC98F);
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: authCheckDraw 0.5s ease-out 0.2s forwards;
}

@keyframes authScaleIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

@keyframes authCheckDraw {
    to { stroke-dashoffset: 0; }
}

/* ── Account Settings ──────────────────────────────────────────── */

.nf-account-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.nf-account-page .nf-auth-card {
    max-width: 100%;
}

.nf-account-page .nf-auth-card + .nf-auth-card {
    margin-top: 1.25rem;
}

.nf-account-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nf-text-muted, #515165);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--nf-border, #E0E3E9);
}

.nf-account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.nf-account-row + .nf-account-row {
    border-top: 1px solid rgba(224, 227, 233, 0.5);
}

.nf-account-row-label {
    font-size: 0.88rem;
    color: var(--nf-text-muted, #515165);
}

.nf-account-row-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--nf-text, #1C1C28);
}

.nf-account-badge {
    display: inline-flex;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nf-account-badge-free {
    background: rgba(224, 227, 233, 0.4);
    color: var(--nf-text-muted, #515165);
}

.nf-account-badge-pro {
    background: linear-gradient(135deg, rgba(255, 15, 111, 0.1), rgba(255, 122, 48, 0.1));
    color: var(--nf-accent-pink, #FF0F6F);
}

.nf-account-badge-enterprise {
    background: rgba(42, 14, 92, 0.08);
    color: var(--nf-primary, #2A0E5C);
}

.nf-account-badge-verified {
    background: rgba(44, 201, 143, 0.1);
    color: #1a8a5e;
}

.nf-account-badge-unverified {
    background: rgba(255, 180, 68, 0.12);
    color: #b47a00;
}

/* ── User Nav Dropdown ─────────────────────────────────────────── */

.nf-user-menu {
    position: relative;
    display: inline-flex;
}

.nf-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A0E5C, #5A3E9C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.nf-user-avatar:hover,
.nf-user-menu.nf-user-menu-open .nf-user-avatar {
    border-color: rgba(255, 15, 111, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 15, 111, 0.1);
}

.nf-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(42, 14, 92, 0.12);
    border: 1px solid var(--nf-border, #E0E3E9);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1002;
    overflow: hidden;
}

.nf-user-menu-open .nf-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nf-user-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--nf-border, #E0E3E9);
}

.nf-user-dropdown-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nf-text, #1C1C28);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nf-user-tier-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 0.4rem;
}

.nf-user-tier-badge-free {
    background: #e8f5e9;
    color: #2e7d32;
}

.nf-user-tier-badge-pro {
    background: #e0e8ff;
    color: #1e3ac4;
}

.nf-user-tier-badge-enterprise {
    background: #ffe0e6;
    color: #c41e3a;
}

.nf-user-dropdown-org {
    font-size: 0.75rem;
    color: var(--nf-primary, #6c5ce7);
    margin: 0.25rem 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.nf-user-dropdown-email {
    font-size: 0.78rem;
    color: var(--nf-text-muted, #515165);
    margin: 0.1rem 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nf-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.88rem;
    white-space: nowrap;
    color: var(--nf-text, #1C1C28);
    text-decoration: none;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.nf-user-dropdown-item:hover {
    background: var(--nf-bg, #F7F8FA);
}

.nf-user-dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--nf-text-muted, #515165);
    flex-shrink: 0;
}

.nf-user-dropdown-divider {
    height: 1px;
    background: var(--nf-border, #E0E3E9);
    margin: 0.35rem 0;
}

.nf-user-dropdown-item-danger {
    color: var(--nf-error, #E64A4A);
}

.nf-user-dropdown-item-danger svg {
    color: var(--nf-error, #E64A4A);
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .nf-auth-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .nf-auth-title {
        font-size: 1.3rem;
    }
}

/* ── Session History ────────────────────────────────────────────── */

.nf-session-history-card {
    max-width: 900px;
    width: 100%;
}

.nf-session-history-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.nf-session-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
}

.nf-session-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.nf-session-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.nf-session-empty p {
    font-size: 0.95rem;
}

.nf-session-empty a {
    color: #4A154B;
    font-weight: 600;
    text-decoration: none;
}

.nf-session-empty a:hover {
    text-decoration: underline;
}

/* Card Grid */
.nf-session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.nf-session-card {
    background: #fff;
    border: 1px solid #e8e8ef;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nf-session-card:hover {
    box-shadow: 0 4px 16px rgba(74, 21, 75, 0.12);
    transform: translateY(-2px);
}

.nf-session-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.nf-session-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a2e;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nf-session-card-user {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.nf-session-card-client {
    font-size: 0.85rem;
    color: #666;
}

.nf-session-card-ip {
    white-space: nowrap;
    font-family: monospace;
    font-size: 0.75rem;
}

.nf-session-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #999;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f5;
}

.nf-session-card-date {
    flex: 1;
}

.nf-session-card-duration {
    white-space: nowrap;
}

/* Score Badge */
.nf-session-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.nf-session-score-badge--distinction {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.nf-session-score-badge--merit {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.nf-session-score-badge--pass {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
}

.nf-session-score-badge--conditional-pass {
    background: linear-gradient(135deg, #ffe0cc, #ffd1b3);
    color: #a05000;
}

.nf-session-score-badge--fail {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.nf-session-score-badge--pending {
    background: #f0f0f5;
    color: #888;
}

/* Load More */
.nf-session-more {
    text-align: center;
    margin-top: 1rem;
}

.nf-session-load-more-btn {
    min-width: 140px;
}

/* Detail Modal Overrides */
#sessionDetailModal .modal-dialog {
    max-width: 800px;
}

#sessionDetailModal .report-body {
    max-height: 70vh;
    overflow-y: auto;
}

.nf-detail-report-hero {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(74, 21, 75, 0.04), rgba(255, 15, 111, 0.04));
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.nf-detail-grade-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A154B, #FF0F6F);
    color: #fff;
    margin-bottom: 0.75rem;
}

.nf-detail-grade-letter {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.nf-detail-grade-score {
    font-size: 0.75rem;
    opacity: 0.85;
}

.nf-detail-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.nf-detail-metric {
    text-align: center;
}

.nf-detail-metric-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.nf-detail-metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
}

.nf-detail-section {
    margin-bottom: 1.5rem;
}

.nf-detail-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f5;
}

.nf-detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

.nf-detail-info-label {
    color: #888;
}

.nf-detail-info-value {
    font-weight: 500;
    color: #333;
}

.nf-detail-transcript {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #f0f0f5;
    border-radius: 8px;
    padding: 1rem;
}

.nf-detail-turn {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f8fc;
}

.nf-detail-turn:last-child {
    border-bottom: none;
}

.nf-detail-turn-speaker {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.nf-detail-turn-speaker--learner {
    color: #4A154B;
}

.nf-detail-turn-speaker--client {
    color: #FF0F6F;
}

.nf-detail-turn-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}

.nf-detail-insights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nf-detail-insight {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.nf-detail-insight--strength {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
}

.nf-detail-insight--improvement {
    background: #fef9ee;
    border-left: 3px solid #f59e0b;
}

.nf-detail-insight-dim {
    font-weight: 600;
    color: #333;
}

.nf-detail-insight-desc {
    color: #555;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .nf-session-grid {
        grid-template-columns: 1fr;
    }
    .nf-detail-info-grid {
        grid-template-columns: 1fr;
    }
}

/* In Progress / Abandoned badges */
.nf-session-score-badge--in-progress {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
}

.nf-session-score-badge--abandoned {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #6c757d;
}

/* Incomplete session detail hero */
.nf-detail-grade-circle--incomplete {
    background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
    color: #6c757d !important;
}

.nf-detail-grade-circle--incomplete .nf-detail-grade-letter {
    font-size: 0.9rem;
}

/* Incomplete state for report-style grade circle (session history detail) */
.report-grade-circle--incomplete {
    background: linear-gradient(135deg, #e9ecef, #dee2e6) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.report-grade-circle--incomplete .report-grade-letter {
    font-size: 1.5rem;
}

/* Session selection mode */
.nf-session-card {
    position: relative;
}

.nf-session-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4f46e5;
}

/* ── Session Filter Panel ────────────────────────── */
.nf-session-filter-panel {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.nf-session-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.nf-session-filter-row:last-child {
    margin-bottom: 0;
}

.nf-session-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 1;
}

.nf-session-filter-group.nf-session-filter-search {
    flex: 2;
}

.nf-session-filter-group.nf-session-filter-actions {
    flex: 0 0 auto;
    min-width: auto;
}

.nf-session-filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.nf-session-filter-group .nf-auth-input {
    padding: 0.35rem 0.6rem;
}

.nf-session-bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    color: #9ca3af;
    transition: color 0.2s;
    flex-shrink: 0;
}

.nf-session-bookmark-btn:hover {
    color: #f59e0b;
}

.nf-session-bookmark-btn.saved {
    color: #f59e0b;
}

.nf-saved-filter-active {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}

.nf-session-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.nf-session-mode-badge--voice {
    background: rgba(42, 14, 92, 0.1);
    color: #2A0E5C;
}

.nf-session-mode-badge--text {
    background: rgba(81, 81, 101, 0.1);
    color: #515165;
}

.nf-session-mode-badge--tutorial {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.nf-session-mode-badge--mixed {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

@media (max-width: 768px) {
    .nf-session-filter-group {
        min-width: 100%;
    }
    .nf-session-filter-group.nf-session-filter-search {
        flex: 1 1 100%;
    }
}

.nf-session-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 4px;
}

.nf-session-select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
}

.nf-auth-btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.4rem 0.75rem;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.nf-auth-btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.nf-auth-btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Saved CV preview on the Account page */
.nf-cv-preview {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #374151;
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
}
