/* ═══════════════════════════════════════════════════════════════════════════
   Kobo Kütüphane — Stil Dosyası
   Temiz, modern, Türkçe arayüz. Mobil uyumlu.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Değişkenleri ──────────────────────────────────────────────────── */

:root {
    --color-bg: #f5f5f7;
    --color-surface: #ffffff;
    --color-border: #e2e2e6;
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-muted: #999;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #eff6ff;
    --color-success: #16a34a;
    --color-success-light: #f0fdf4;
    --color-warning: #d97706;
    --color-warning-light: #fffbeb;
    --color-error: #dc2626;
    --color-error-light: #fef2f2;
    --color-kobo-on: #16a34a;
    --color-kobo-off: #999;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: 0.2s ease;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Navbar ────────────────────────────────────────────────────────────── */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kobo-indicator {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    white-space: nowrap;
}

.kobo-indicator.connected { color: var(--color-kobo-on); }
.kobo-indicator.disconnected { color: var(--color-kobo-off); }

/* ─── Container ─────────────────────────────────────────────────────────── */

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ─── Login ─────────────────────────────────────────────────────────────── */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f5f7 50%, #fef2f2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-icon { font-size: 3rem; margin-bottom: 8px; }

.login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.login-form { text-align: left; }

/* ─── Form ──────────────────────────────────────────────────────────────── */

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--color-surface);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ─── Butonlar ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    user-select: none;
    line-height: 1.4;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-outline {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-outline:hover:not(:disabled) {
    background: var(--color-bg);
    border-color: #ccc;
}

.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Alert ─────────────────────────────────────────────────────────────── */

.alert {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.alert-error {
    background: var(--color-error-light);
    color: var(--color-error);
    border: 1px solid #fecaca;
}

/* ─── Toolbar ───────────────────────────────────────────────────────────── */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-left { flex: 1; min-width: 200px; }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.search-box {
    position: relative;
    max-width: 420px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 9px 36px 9px 36px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-family: var(--font);
    background: var(--color-surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 4px;
    line-height: 1;
}

.selection-info {
    font-size: 0.825rem;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ─── Progress ──────────────────────────────────────────────────────────── */

.progress-container {
    margin-bottom: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.progress-bar {
    height: 6px;
    background: var(--color-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* ─── Books Grid ────────────────────────────────────────────────────────── */

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.book-card {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
}

.book-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.book-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

.book-card.on-kobo {
    opacity: 0.85;
}

/* Checkbox */
.book-checkbox {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--color-primary);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--transition), transform var(--transition);
}

.book-card:hover .book-checkbox,
.book-card.selected .book-checkbox,
.book-checkbox:checked {
    opacity: 1;
    transform: scale(1);
}

.book-checkbox:disabled {
    opacity: 0 !important;
    cursor: not-allowed;
}

/* Kapak */
.book-cover-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 2:3 en-boy oranı */
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    overflow: hidden;
}

.book-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    padding: 16px;
    text-align: center;
}

.book-cover-placeholder .placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 6px;
}

.book-cover-placeholder .placeholder-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Kart bilgileri */
.book-info {
    padding: 12px 14px;
}

.book-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-author {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Durum rozeti */
.book-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.badge-on-kobo {
    background: var(--color-success-light);
    color: var(--color-success);
}

.badge-ready {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-enriching {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.badge-not-found {
    background: var(--color-bg);
    color: var(--color-text-muted);
}

.badge-genre {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge-literature {
    background: #fef3c7;
    color: #b45309;
}

/* Favori butonu (kart üzerinde) */
.fav-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
    padding: 0;
    line-height: 1;
    opacity: 0;
    transform: scale(0.8);
}

.book-card:hover .fav-btn,
.book-card .fav-btn.active {
    opacity: 1;
    transform: scale(1);
}

.fav-btn.active {
    background: #fef3c7;
    border-color: #f59e0b;
}

.fav-btn:hover {
    background: #fef3c7;
    transform: scale(1.15) !important;
}

/* ─── Sıralama ──────────────────────────────────────────────────────────── */

.sort-box {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.sort-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.sort-select {
    padding: 6px 28px 6px 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-family: var(--font);
    background: var(--color-surface);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.12);
}

/* ─── Filtre Etiketleri ─────────────────────────────────────────────────── */

.filter-section {
    margin-bottom: 16px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tag {
    padding: 5px 14px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font);
    background: var(--color-surface);
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.filter-tag:hover {
    background: var(--color-bg);
    border-color: #ccc;
}

.filter-tag.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.filter-count {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 2px;
}

/* ─── Modal ─────────────────────────────────────────────────────────────── */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px 0;
}

.modal-cover {
    width: 120px;
    min-width: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 2/3;
    background: var(--color-bg);
}

.modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-cover .placeholder-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-header-info {
    flex: 1;
    min-width: 0;
}

.modal-header-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.modal-header-info .modal-author {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-body {
    padding: 20px 28px 28px;
}

.modal-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
    white-space: pre-line;
}

.modal-description-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-top: 1px solid var(--color-border);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    background: var(--color-bg);
}

/* ─── Toast ─────────────────────────────────────────────────────────────── */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.25s ease, fadeOut 0.3s ease 3.7s forwards;
    max-width: 380px;
    line-height: 1.4;
}

.toast-success {
    background: var(--color-success);
    color: white;
}

.toast-error {
    background: var(--color-error);
    color: white;
}

.toast-info {
    background: var(--color-primary);
    color: white;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(4px); }
}

/* ─── Boş Durum ─────────────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.empty-icon { font-size: 3.5rem; margin-bottom: 12px; }

.empty-state h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 6px;
}

/* ─── Yükleniyor ────────────────────────────────────────────────────────── */

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 12px;
}

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

/* ─── Error Page ────────────────────────────────────────────────────────── */

.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-icon { font-size: 3.5rem; margin-bottom: 12px; }

.error-page h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.error-page p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* ─── Filtre Sekmeleri ──────────────────────────────────────────────────── */

.filter-tabs-wrapper {
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs {
    display: flex;
    gap: 4px;
    padding-bottom: 4px;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font);
    background: var(--color-surface);
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--color-text-secondary);
    white-space: nowrap;
}

.filter-tab:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.filter-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ─── Alt Sabit Çubuk ──────────────────────────────────────────────────── */

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 2px solid var(--color-border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 150;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    gap: 12px;
}

.bottom-bar-selection {
    font-size: 0.95rem;
    color: var(--color-text);
}

.bottom-bar-selection strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.btn-transfer-bottom {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font);
    border: none;
    background: #f59e0b;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    min-height: 48px;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

.btn-transfer-bottom:hover:not(:disabled) {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.5);
}

.btn-transfer-bottom:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

/* Alt çubuk görününce sayfa içeriğine padding ekle */
body.has-bottom-bar .container {
    padding-bottom: 100px;
}

/* ─── Ignore Butonu (Kart Üzerinde) ─────────────────────────────────────── */

.ignore-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
    padding: 0;
    line-height: 1;
    opacity: 0;
    transform: scale(0.8);
}

.book-card:hover .ignore-btn {
    opacity: 1;
    transform: scale(1);
}

.ignore-btn:hover {
    background: #fef2f2;
    border-color: var(--color-error);
    transform: scale(1.15);
}

.ignore-btn i { font-style: normal; }

/* Ignore edilmiş kitap stilleri */
.book-card.ignored {
    opacity: 0.5;
    filter: grayscale(0.3);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .navbar { padding: 0 12px; }
    .nav-title { display: none; }
    .container { padding: 12px; }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-right { justify-content: flex-start; }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .book-info { padding: 8px 10px; }
    .book-title { font-size: 0.78rem; }

    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-cover { width: 100px; min-width: 100px; }

    .modal-header-info h2 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .btn { font-size: 0.8rem; padding: 6px 12px; }

    .modal { margin: 8px; border-radius: var(--radius-lg); }
    .modal-header { padding: 16px 16px 0; }
    .modal-body { padding: 12px 16px 16px; }
    .modal-footer { padding: 12px 16px; flex-direction: column; gap: 8px; }
}
