:root {
    --app-bg: #f5f7fb;
    --app-card-radius: 1rem;
}

body {
    background: var(--app-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.card,
.accordion-item {
    border-radius: var(--app-card-radius);
}

.stat-card {
    overflow: hidden;
}

.stat-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #20c997);
}

.poem-input {
    line-height: 2;
    resize: vertical;
    white-space: pre-wrap;
}

.accordion-button {
    font-weight: 700;
}

.accordion-item {
    background: #fff;
    margin-bottom: .75rem;
    border: 1px solid rgba(0, 0, 0, .06) !important;
    overflow: hidden;
}

.poem-card {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: .875rem;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.poem-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .08);
}

.poem-text {
    white-space: pre-wrap;
    line-height: 2.15;
    font-size: 1.04rem;
    color: #1f2937;
}

.poem-meta {
    font-size: .8rem;
}

.status-badge {
    min-width: 6.5rem;
}

.toast {
    --bs-toast-zindex: 1080;
}

.btn-group-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

@media (max-width: 575.98px) {
    .app-header {
        position: static;
    }

    .poem-card .card-actions {
        width: 100%;
    }

    .poem-card .card-actions .btn {
        flex: 1 1 auto;
    }
}

.auth-page {
    background: radial-gradient(circle at top, #ffffff 0, var(--app-bg) 42%, #eef2f7 100%);
}

.auth-card {
    max-width: 27rem;
    border-radius: 1.25rem;
}
