/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout scoped styles are handled in app.css */
/* /Components/Pages/CreateLetter.razor.rz.scp.css */
/* ── Page hero ── */
.page-hero[b-kkw0kesyiu] {
    background: linear-gradient(135deg, #f0f4ff 0%, #fafbff 60%, #f5f0ff 100%);
    border: 1px solid #e4e9f7;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

.page-hero-icon[b-kkw0kesyiu] {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.page-hero-title[b-kkw0kesyiu] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1d23;
    line-height: 1.2;
}

.breadcrumb[b-kkw0kesyiu] {
    font-size: 0.8rem;
}

.breadcrumb-item + .breadcrumb-item[b-kkw0kesyiu]::before {
    color: #adb5bd;
}

@media (max-width: 575.98px) {
    .page-hero[b-kkw0kesyiu] {
        padding: 1rem;
    }

    .page-hero-icon[b-kkw0kesyiu] {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 11px;
    }

    .page-hero-title[b-kkw0kesyiu] {
        font-size: 1.2rem;
    }

    .page-hero .btn[b-kkw0kesyiu] {
        align-self: flex-start;
    }
}

/* ── Step bar ── */
.steps-bar[b-kkw0kesyiu] {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.step[b-kkw0kesyiu] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.3s;
}

    .step.active[b-kkw0kesyiu], .step.done[b-kkw0kesyiu] {
        opacity: 1;
    }

.step-circle[b-kkw0kesyiu] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}

.step.active .step-circle[b-kkw0kesyiu] {
    background: #0d6efd;
    color: #fff;
}

.step.done .step-circle[b-kkw0kesyiu] {
    background: #198754;
    color: #fff;
}

    .step.done .step-circle[b-kkw0kesyiu]::before {
        content: "✓";
    }

.step.done .step-circle[b-kkw0kesyiu] {
    font-size: 0;
}

    .step.done .step-circle[b-kkw0kesyiu]::before {
        font-size: 0.85rem;
    }

.step-label[b-kkw0kesyiu] {
    font-size: 0.82rem;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
}

.step.active .step-label[b-kkw0kesyiu] {
    color: #0d6efd;
}

.step.done .step-label[b-kkw0kesyiu] {
    color: #198754;
}

.step-line[b-kkw0kesyiu] {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    margin: 0 0.5rem;
    min-width: 12px;
}

/* Hide step labels on very small screens */
@media (max-width: 480px) {
    .step-label[b-kkw0kesyiu] {
        display: none;
    }

    .step-line[b-kkw0kesyiu] {
        margin: 0 0.35rem;
    }
}

/* ── Form card accent ── */
.form-card[b-kkw0kesyiu] {
    border-left: 4px solid #0d6efd !important;
}

.ls-1[b-kkw0kesyiu] {
    letter-spacing: 0.04em;
}

/* ── Generate button ── */
.generate-btn[b-kkw0kesyiu] {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.1s;
}

    .generate-btn:hover:not(:disabled)[b-kkw0kesyiu] {
        opacity: 0.92;
        transform: translateY(-1px);
    }

    .generate-btn:active:not(:disabled)[b-kkw0kesyiu] {
        transform: translateY(0);
    }

    .generate-btn:disabled[b-kkw0kesyiu] {
        opacity: 0.65;
    }

/* ── Editor card ── */
.editor-card[b-kkw0kesyiu] {
    transition: box-shadow 0.4s;
}

.editor-glow[b-kkw0kesyiu] {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25), 0 4px 16px rgba(0,0,0,0.1) !important;
}

.editor-body[b-kkw0kesyiu] {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.editor-placeholder[b-kkw0kesyiu] {
    flex: 1;
    min-height: 420px;
}

/* ── Editor tip banner ── */
.editor-tip-banner[b-kkw0kesyiu] {
    background: linear-gradient(90deg, #e8f4fd 0%, #f0f9ff 100%);
    border-bottom: 1px solid #bee5fb;
    animation: slideDown-b-kkw0kesyiu 0.35s ease;
}

@keyframes slideDown-b-kkw0kesyiu {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tip-pulse-dot[b-kkw0kesyiu] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6efd;
    flex-shrink: 0;
    animation: tipPulse-b-kkw0kesyiu 1.5s ease-in-out 3;
}

@keyframes tipPulse-b-kkw0kesyiu {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

/* ── Empty state icon ── */
.empty-state-icon[b-kkw0kesyiu] {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #6c757d;
}

/* ── AI spinner ── */
.ai-spinner[b-kkw0kesyiu] {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-spinner-ring[b-kkw0kesyiu] {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #0d6efd;
    border-right-color: #6610f2;
    animation: spin-b-kkw0kesyiu 1s linear infinite;
}

.ai-spinner-icon[b-kkw0kesyiu] {
    font-size: 1.4rem;
}

@keyframes spin-b-kkw0kesyiu {
    to {
        transform: rotate(360deg);
    }
}

/* ── Quill overrides ── */
.ql-toolbar.ql-snow[b-kkw0kesyiu] {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 0;
    flex-wrap: wrap;
}

.ql-container.ql-snow[b-kkw0kesyiu] {
    border: none;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.7;
}

.ql-editor[b-kkw0kesyiu] {
    min-height: 440px;
    padding: 1.5rem 2rem;
}

    .ql-editor p[b-kkw0kesyiu] {
        margin-bottom: 0.4em;
    }

/* ── Mobile overrides ── */
@media (max-width: 575.98px) {
    .ql-editor[b-kkw0kesyiu] {
        padding: 1rem;
    }

    .editor-body[b-kkw0kesyiu] {
        min-height: 320px;
    }

    .editor-placeholder[b-kkw0kesyiu] {
        min-height: 320px;
    }

    .card-header.px-md-4[b-kkw0kesyiu] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
