/* ═══════════════════════════════════════════════════════════
   SOFT TRADING — Admin Dashboard Styles
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --bg: #f8f9fb;
    --bg-card: #ffffff;
    --bg-sidebar: #0c1a2e;
    --bg-sidebar-hover: rgba(255,255,255,0.06);
    --bg-sidebar-active: rgba(20,184,166,0.12);
    --border: #e5e7eb;
    --border-light: #f0f1f3;
    --text: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-sidebar: #94a3b8;
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-bg: rgba(20,184,166,0.08);
    --green: #22c55e;
    --green-bg: rgba(34,197,94,0.1);
    --red: #ef4444;
    --red-bg: rgba(239,68,68,0.08);
    --amber: #f59e0b;
    --amber-bg: rgba(245,158,11,0.1);
    --blue: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* ── Login Screen ──────────────────────────────────── */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #050a14 0%, #0c1a2e 50%, #0a1628 100%);
    padding: 24px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}

.login-logo {
    height: 44px;
    margin: 0 auto 24px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font);
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-bg);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* ── Rich-text editor (indicator description) ───────
   Zero-dependency contenteditable + execCommand toolbar.
   Styled to match the rest of the form inputs so the
   editor feels native. */
.rich-editor-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--bg-raised, var(--bg));
}
.rich-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rich-btn:hover {
    background: var(--bg);
    border-color: var(--border);
}
.rich-btn.is-active {
    background: var(--teal-bg);
    border-color: var(--teal);
    color: var(--teal);
}
.rich-btn svg { display: block; }
.rich-editor {
    width: 100%;
    min-height: 140px;
    max-height: 360px;
    overflow-y: auto;
    padding: 11px 14px;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rich-editor:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-bg);
}
.rich-editor b, .rich-editor strong { font-weight: 700; }
.rich-editor u { text-decoration: underline; }
.rich-editor ul {
    list-style: disc;
    padding-left: 22px;
    margin: 6px 0;
}
.rich-editor ol {
    list-style: decimal;
    padding-left: 22px;
    margin: 6px 0;
}
.rich-editor li { margin: 2px 0; }
.rich-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}

.login-error {
    font-size: 13px;
    color: var(--red);
    margin-bottom: 12px;
    min-height: 20px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.login-btn:hover { background: var(--teal-light); }
.login-btn:active { transform: scale(0.98); }

.login-signup-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.login-signup-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* ── Dashboard Layout ──────────────────────────────── */
.dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────── */
.sidebar {
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    height: 30px;
}

.sidebar-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-light);
    background: rgba(20,184,166,0.12);
    padding: 3px 8px;
    border-radius: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 16px;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-sidebar);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-align: left;
}

.nav-item:hover {
    background: var(--bg-sidebar-hover);
    color: #e2e8f0;
}

.nav-item.active {
    background: var(--bg-sidebar-active);
    color: var(--teal-light);
}

/* Pending-bookings notification badge inside the sidebar nav button */
.nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 100px;
    background: var(--teal-light, #14b8a6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.5);
}

/* Read-only labelled field used in the Booking detail modal */
.readonly-field {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 14px;
    word-break: break-word;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--teal-light, #14b8a6);
}

/* ── Image uploader (Indicators: thumbnail + cover) ───── */
.hint-inline {
    color: var(--text-muted, #94a3b8);
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
}

.image-uploader-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.image-uploader-row--single {
    grid-template-columns: 1fr;
    max-width: 480px;
}

.image-uploader {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.image-uploader-preview {
    aspect-ratio: 16 / 10;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-uploader-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.image-uploader-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
}

.image-uploader-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.image-uploader-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.image-uploader-url {
    width: 100%;
    padding: 8px 10px;
    font-size: 12.5px;
    font-family: var(--font-mono, ui-monospace, monospace);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-input, rgba(255, 255, 255, 0.03));
    color: var(--text-primary);
    transition: border-color 0.18s ease;
}
.image-uploader-url:focus {
    outline: none;
    border-color: var(--teal, #0d9488);
}
.image-uploader-url::placeholder {
    color: var(--text-muted, #94a3b8);
}

.image-uploader-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.image-uploader-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--teal, #0d9488);
    color: #fff;
    cursor: pointer;
    border: 0;
    transition: background 0.18s ease;
}
.image-uploader-btn:hover {
    background: var(--teal-light, #14b8a6);
}
.image-uploader-btn--secondary {
    background: transparent;
    color: var(--text-muted, #94a3b8);
    border: 1px solid var(--border-light);
}
.image-uploader-btn--secondary:hover {
    background: rgba(20, 184, 166, 0.06);
    color: var(--teal-light, #14b8a6);
    border-color: var(--teal, #0d9488);
}
.image-uploader-remove {
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--danger, #ef4444);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.image-uploader-remove:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: var(--danger, #ef4444);
}
.image-uploader-progress {
    font-size: 11.5px;
    color: var(--teal-light, #14b8a6);
    font-weight: 500;
}

@media (max-width: 768px) {
    .image-uploader-row {
        grid-template-columns: 1fr;
    }
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--text-sidebar);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--red-bg);
    color: var(--red);
}

/* ── Main Content ──────────────────────────────────── */
.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Hamburger button — hidden on desktop, only revealed at ≤768px */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.mobile-menu-btn:hover {
    background: var(--bg-hover, rgba(255,255,255,0.04));
    border-color: var(--teal);
}

/* Backdrop sits behind the slide-in sidebar on mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sidebar-backdrop.open {
    display: block;
    opacity: 1;
}

.page-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.main-content {
    flex: 1;
    padding: 28px 32px;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover { background: var(--teal-light); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover { border-color: #d1d5db; background: #f3f4f6; }

.btn-danger {
    padding: 9px 18px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover { background: rgba(239,68,68,0.15); }

/* ── Overview Cards ────────────────────────────────── */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}

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

.stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
}

.stat-badge.green { color: var(--green); background: var(--green-bg); }
.stat-badge.amber { color: var(--amber); background: var(--amber-bg); }

/* ── Data Table ────────────────────────────────────── */
.data-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table thead {
    background: var(--bg);
}

.data-table th {
    padding: 12px 16px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(0,0,0,0.01);
}

.table-name {
    font-weight: 600;
    color: var(--text);
}

.table-slug {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.table-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
    border: 1px solid var(--border-light);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 100px;
}

.status-badge.published { color: var(--green); background: var(--green-bg); }
.status-badge.draft { color: var(--amber); background: var(--amber-bg); }
.status-badge.archived { color: var(--text-muted); background: var(--bg); }

.featured-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
}

.table-actions {
    display: flex;
    gap: 6px;
}

.table-actions button {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font);
}

.table-actions button:hover {
    background: var(--bg);
    color: var(--text);
}

.table-actions .delete-btn:hover {
    background: var(--red-bg);
    color: var(--red);
    border-color: rgba(239,68,68,0.2);
}

.table-price {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--teal);
}

/* ── Modal ─────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s var(--ease);
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

.btn-cancel {
    padding: 9px 20px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-cancel:hover { background: #f3f4f6; }

.btn-save {
    padding: 9px 24px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-save:hover { background: var(--teal-light); }
.btn-save:active { transform: scale(0.97); }

/* ── Form elements inside modal ────────────────────── */
.modal-body .form-group { margin-bottom: 16px; }
.modal-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group .hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-group .toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle {
    position: relative;
    width: 40px;
    height: 22px;
    -webkit-appearance: none;
    appearance: none;
    background: #d1d5db;
    border-radius: 100px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    flex-shrink: 0;
}

.toggle:checked { background: var(--teal); }

.toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s var(--ease);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle:checked::before {
    transform: translateX(18px);
}

.toggle-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ── Settings Grid ─────────────────────────────────── */
.settings-grid {
    display: grid;
    gap: 24px;
}

.settings-group {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
}

.settings-group-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: capitalize;
    color: var(--text);
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child { border-bottom: none; }

.settings-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.settings-input {
    width: 100%;
    padding: 9px 12px;
    font-family: var(--font);
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.settings-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-bg);
}

.settings-save {
    margin-top: 16px;
    text-align: right;
}

/* ── Toast ─────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s var(--ease);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── Empty State ───────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 16px;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    /* Sidebar becomes a slide-in drawer on phones */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 82%;
        max-width: 320px;
        height: 100dvh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .main-header {
        padding: 14px 16px;
    }
    .main-content {
        padding: 20px 16px;
    }
    .modal {
        max-width: 100%;
        max-height: 95vh;
    }
    .modal-body .form-row {
        grid-template-columns: 1fr;
    }
    .settings-row {
        grid-template-columns: 1fr;
    }
}