room-planner/frontend/src/index.css
jtricerolph 00e5e684fa Room planner: rewrite card layout to match original Gantt design
Replace CSS grid with the original plugin's vertical list + 23px margin
bracket system. Each card has a 2px border coloured by booking status;
data-previous-status / data-next-status drive C-bracket pseudo-elements in
the 23px gutter; data-spans-previous/next remove the corresponding border
and collapse the margin to extend the card across days.

Card interior is restructured: header row (room number, flow badge, lock,
nights counter, site-status pill), guest info row, and stats row (time
pill, bed-type pill, task-status bordered pill). Category headers now match
the original's sticky bordered style with edge-extending pseudo-elements.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-04 10:02:44 +00:00

1020 lines
25 KiB
CSS

/* Stack design system tokens */
:root {
--navy: #1a1a2e;
--gold: #c9a84c;
--body-bg: #f4f5f7;
--card-bg: #ffffff;
--text-primary: #1a1a2e;
--text-muted: #6b7280;
--border: #e5e7eb;
--radius: 8px;
--shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
--shadow-md: 0 4px 12px rgba(0,0,0,0.12);
/* App theme */
--app-primary: #2d6a4f;
--app-primary-light: #40916c;
--app-primary-dark: #1b4332;
/* Booking status colours */
--col-arrived: #3b82f6;
--col-confirmed: #10b981;
--col-unconfirmed: #f59e0b;
--col-departed: #a855f7;
--col-blocked: #6b7280;
--col-cancelled: #94a3b8;
/* Planner layout */
--sidebar-w: 240px;
--topbar-h: 56px;
--card-h: 72px;
--sliver-w: 23px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body, #root {
height: 100%;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--body-bg);
color: var(--text-primary);
font-size: 14px;
}
/* ── Scrollbars ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
/* ── Layout ─────────────────────────────────────────────────── */
.app-shell {
display: flex;
height: 100vh;
overflow: hidden;
}
/* Sidebar (desktop) */
.sidebar {
width: var(--sidebar-w);
background: var(--navy);
display: flex;
flex-direction: column;
flex-shrink: 0;
overflow-y: auto;
}
.sidebar-logo {
padding: 20px 16px 12px;
color: var(--gold);
font-size: 13px;
font-weight: 600;
letter-spacing: .05em;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 8px;
}
.sidebar-logo svg { opacity: .8; }
.sidebar-nav {
flex: 1;
padding: 8px 0;
}
.sidebar-nav a {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 16px;
color: rgba(255,255,255,.65);
text-decoration: none;
font-size: 13.5px;
transition: background .15s, color .15s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-nav a.active { background: rgba(201,168,76,.1); color: var(--gold); }
.sidebar-user {
padding: 12px 16px;
border-top: 1px solid rgba(255,255,255,.08);
color: rgba(255,255,255,.45);
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Mobile top bar */
.top-bar {
display: none;
height: var(--topbar-h);
background: var(--navy);
color: #fff;
align-items: center;
padding: 0 12px;
gap: 10px;
flex-shrink: 0;
}
.top-bar-title {
flex: 1;
font-size: 15px;
font-weight: 600;
color: var(--gold);
}
.top-bar-nav {
display: flex;
gap: 4px;
}
.top-bar-nav a {
color: rgba(255,255,255,.6);
padding: 6px 10px;
border-radius: 6px;
text-decoration: none;
font-size: 12px;
}
.top-bar-nav a.active { color: var(--gold); }
.page-content {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
@media (max-width: 768px) {
.sidebar { display: none; }
.top-bar { display: flex; }
}
/* ── Date bar ────────────────────────────────────────────────── */
.date-bar {
background: var(--card-bg);
border-bottom: 1px solid var(--border);
padding: 8px 12px;
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.date-bar input[type="date"] {
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 5px 8px;
font-size: 14px;
color: var(--text-primary);
background: var(--body-bg);
}
.date-nav-btn {
background: none;
border: 1px solid var(--border);
border-radius: 6px;
padding: 5px 10px;
cursor: pointer;
color: var(--text-muted);
font-size: 13px;
transition: background .12s;
}
.date-nav-btn:hover { background: var(--body-bg); }
.date-today-btn {
background: var(--app-primary);
color: #fff;
border: none;
border-radius: 6px;
padding: 5px 12px;
cursor: pointer;
font-size: 13px;
}
.date-label {
flex: 1;
font-weight: 600;
font-size: 14px;
}
.refresh-btn {
background: none;
border: none;
cursor: pointer;
color: var(--text-muted);
padding: 4px;
border-radius: 6px;
display: flex;
transition: color .12s;
}
.refresh-btn:hover { color: var(--app-primary); }
.refresh-btn.spinning svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* ── Filter bars ─────────────────────────────────────────────── */
.filter-section {
background: var(--card-bg);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.filter-bar {
position: relative;
display: flex;
align-items: center;
overflow: hidden;
}
.filter-bar-scroll {
display: flex;
gap: 6px;
padding: 6px 10px;
overflow-x: auto;
scroll-behavior: smooth;
scrollbar-width: none;
flex: 1;
}
.filter-bar-scroll::-webkit-scrollbar { display: none; }
.filter-arrow {
background: linear-gradient(to right, transparent, var(--card-bg) 40%);
border: none;
cursor: pointer;
color: var(--text-muted);
padding: 0 6px;
height: 100%;
flex-shrink: 0;
display: flex;
align-items: center;
}
.filter-arrow.left { background: linear-gradient(to left, transparent, var(--card-bg) 40%); }
/* Filter chips */
.filter-chip {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border-radius: 20px;
border: 1px solid var(--border);
background: var(--body-bg);
cursor: pointer;
white-space: nowrap;
font-size: 12px;
color: var(--text-muted);
user-select: none;
transition: all .12s;
}
.filter-chip:hover { border-color: var(--app-primary); color: var(--app-primary); }
.filter-chip.inclusive {
background: #d1fae5;
border-color: var(--col-confirmed);
color: #065f46;
}
.filter-chip.exclusive {
background: #fee2e2;
border-color: #ef4444;
color: #991b1b;
}
.chip-count {
background: rgba(0,0,0,.12);
border-radius: 10px;
padding: 1px 5px;
font-size: 10px;
min-width: 16px;
text-align: center;
}
/* Stat filter chips */
.stat-chip {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 10px;
border-radius: 20px;
border: 1px solid var(--border);
background: var(--body-bg);
cursor: pointer;
font-size: 12px;
color: var(--text-muted);
user-select: none;
transition: all .12s;
}
.stat-chip.show-only { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.stat-chip.hide { background: #f3f4f6; border-color: #9ca3af; color: #374151; text-decoration: line-through; }
/* ── Planner body ────────────────────────────────────────────── */
.planner-body {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
}
/* ── Category group ──────────────────────────────────────────── */
.category-group {
margin-bottom: 4px;
}
.category-header {
display: flex;
align-items: center;
gap: 8px;
background: #e5e7eb;
border: 2px solid #d1d5db;
border-radius: 8px;
margin: 8px 23px 5px;
padding: 6px 12px;
cursor: pointer;
user-select: none;
position: sticky;
top: 0;
z-index: 10;
}
.category-header::before,
.category-header::after {
content: '';
position: absolute;
top: -2px;
bottom: -2px;
width: 16px;
background: #e5e7eb;
border-top: 2px solid #d1d5db;
border-bottom: 2px solid #d1d5db;
pointer-events: none;
}
.category-header::before {
left: -16px;
border-right: 2px solid #d1d5db;
border-radius: 0 6px 6px 0;
}
.category-header::after {
right: -16px;
border-left: 2px solid #d1d5db;
border-radius: 6px 0 0 6px;
}
.category-name {
flex: 1;
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em;
color: #4b5563;
}
.category-badge {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 6px;
border-radius: 10px;
font-size: 10px;
font-weight: 600;
}
.badge-tasks { background: #fef3c7; color: #92400e; }
.badge-dirty { background: #fee2e2; color: #991b1b; }
.category-chevron { color: #9ca3af; transition: transform .15s; }
.category-chevron.open { transform: rotate(0deg); }
.category-chevron.closed { transform: rotate(-90deg); }
.category-rooms { padding: 4px 0 2px; }
/* ── Room card — Gantt bracket system ────────────────────────── */
.room-card {
background: #ffffff;
border: 2px solid #d1d5db;
border-radius: 8px;
margin: 0 23px 5px;
padding: 7px 10px;
cursor: pointer;
position: relative;
transition: box-shadow .15s;
}
.room-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.15); }
/* Border colour by booking status */
.room-card[data-booking-status="arrived"] { border-color: #3b82f6; }
.room-card[data-booking-status="confirmed"] { border-color: #10b981; }
.room-card[data-booking-status="unconfirmed"] { border-color: #f59e0b; }
.room-card[data-booking-status="departed"] { border-color: #a855f7; }
/* Span to previous day: card extends left into the margin */
.room-card[data-spans-previous="true"] {
border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
margin-left: 0;
padding-left: 30px;
}
/* Span to next day: card extends right into the margin */
.room-card[data-spans-next="true"] {
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
margin-right: 0;
padding-right: 30px;
}
/* Both: fully square on both sides */
.room-card[data-spans-previous="true"][data-spans-next="true"] {
border-radius: 0;
}
/* ── Gantt bracket pseudo-elements ───────────────────────────── */
/* Left bracket: previous adjacent booking status.
Extends 23px left (to the left edge of the margin area), width 15px,
leaving an 8px visual gap to the card border — matches original plugin. */
.room-card[data-previous-status]::before {
content: '';
position: absolute;
left: -23px;
top: -2px;
bottom: -2px;
width: 15px;
border-top: 2px solid #d1d5db;
border-bottom: 2px solid #d1d5db;
border-right: 2px solid #d1d5db;
border-radius: 0 8px 8px 0;
pointer-events: none;
}
.room-card[data-previous-status="arrived"]::before { border-color: #3b82f6; }
.room-card[data-previous-status="confirmed"]::before { border-color: #10b981; }
.room-card[data-previous-status="unconfirmed"]::before { border-color: #f59e0b; }
.room-card[data-previous-status="departed"]::before { border-color: #a855f7; }
/* Right bracket: next adjacent booking status. */
.room-card[data-next-status]::after {
content: '';
position: absolute;
right: -23px;
top: -2px;
bottom: -2px;
width: 15px;
border-top: 2px solid #d1d5db;
border-bottom: 2px solid #d1d5db;
border-left: 2px solid #d1d5db;
border-radius: 8px 0 0 8px;
pointer-events: none;
}
.room-card[data-next-status="arrived"]::after { border-color: #3b82f6; }
.room-card[data-next-status="confirmed"]::after { border-color: #10b981; }
.room-card[data-next-status="unconfirmed"]::after { border-color: #f59e0b; }
.room-card[data-next-status="departed"]::after { border-color: #a855f7; }
/* Blocked room */
.room-card.room-blocked {
background: #4b5563;
border-color: #374151;
cursor: default;
}
/* ── Card content layout ──────────────────────────────────────── */
/* Header row: room number, flow badge, lock icon, [spacer], nights+status */
.card-header {
display: flex;
align-items: center;
gap: 6px;
}
.card-room-number {
font-size: 14px;
font-weight: 700;
color: #111827;
flex-shrink: 0;
}
.room-blocked .card-room-number { color: rgba(255,255,255,.9); }
.card-flow-badge {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 6px 2px 4px;
border-radius: 4px;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .04em;
flex-shrink: 0;
white-space: nowrap;
}
.flow-arrive { background: #d1fae5; color: #065f46; }
.flow-depart { background: #ede9fe; color: #5b21b6; }
.flow-stopover { background: #dbeafe; color: #1e40af; }
.flow-b2b { background: #fef3c7; color: #92400e; }
.flow-vacant { background: #f3f4f6; color: #6b7280; }
.card-locked-icon { color: #9ca3af; display: flex; flex-shrink: 0; }
/* Right-aligned header group: nights counter + site status pill */
.card-header-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.card-nights {
display: inline-flex;
align-items: center;
gap: 2px;
font-size: 11px;
color: #6b7280;
}
.card-site-status {
display: inline-block;
padding: 2px 6px;
border-radius: 4px;
font-size: 10px;
font-weight: 600;
}
.site-clean { background: #d1fae5; color: #065f46; }
.site-dirty { background: #fee2e2; color: #991b1b; }
.site-inspected { background: #ede9fe; color: #5b21b6; }
.site-unknown { background: #e5e7eb; color: #6b7280; }
/* Guest info row */
.card-guest-row {
display: flex;
align-items: center;
gap: 6px;
margin-top: 4px;
}
.card-guest-name {
font-size: 12px;
color: #374151;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-vacant-label {
font-size: 12px;
color: #9ca3af;
font-style: italic;
flex: 1;
}
.card-pax-badge {
font-size: 10px;
color: #6b7280;
background: #f3f4f6;
border-radius: 4px;
padding: 1px 5px;
flex-shrink: 0;
}
.card-type-badge {
font-size: 10px;
border-radius: 4px;
padding: 1px 5px;
flex-shrink: 0;
font-weight: 600;
}
.type-twin { background: #e0e7ff; color: #3730a3; }
.type-extra { background: #fce7f3; color: #9d174d; }
/* Stats row: time pill, bed type pill, task status pill */
.card-stats-row {
display: flex;
align-items: center;
gap: 4px;
margin-top: 5px;
}
.card-stat-pill {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 5px;
border-radius: 4px;
border: 1.5px solid #d1d5db;
font-size: 10px;
color: #6b7280;
background: #fff;
white-space: nowrap;
flex-shrink: 0;
}
.card-stat-pill.time-arrive { border-color: #10b981; color: #065f46; }
.card-stat-pill.time-depart { border-color: #a855f7; color: #7c3aed; }
.card-stat-pill.bed-twin { border-color: #c084fc; color: #7e22ce; }
.card-stat-pill.bed-double { border-color: #93c5fd; color: #1d4ed8; }
.card-stat-pill.bed-extra { border-color: #f9a8d4; color: #9d174d; }
/* Task status pill (right-aligned) */
.card-task-pill {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 5px;
border-radius: 4px;
border: 1.5px solid;
font-size: 10px;
font-weight: 600;
background: #fff;
margin-left: auto;
flex-shrink: 0;
}
.card-task-pill.no-tasks { border-color: #d1d5db; color: #d1d5db; }
.card-task-pill.all-done { border-color: #10b981; color: #10b981; }
.card-task-pill.outstanding { border-color: #dc2626; color: #dc2626; }
.card-task-pill.rollover { border-color: #f59e0b; color: #f59e0b; }
/* show_on_card task dots */
.card-task-dots {
display: flex;
gap: 3px;
flex-wrap: wrap;
margin-top: 4px;
}
.task-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.task-dot.complete { opacity: .3; }
/* ── Room modal ──────────────────────────────────────────────── */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,.4);
z-index: 100;
display: flex;
align-items: flex-end;
justify-content: center;
padding: 0;
animation: fade-in .15s ease;
}
@keyframes fade-in { from { opacity: 0; } }
@media (min-width: 640px) {
.modal-overlay {
align-items: center;
padding: 20px;
}
}
.modal-sheet {
background: var(--card-bg);
border-radius: 16px 16px 0 0;
width: 100%;
max-height: 90vh;
display: flex;
flex-direction: column;
overflow: hidden;
animation: slide-up .2s ease;
}
@keyframes slide-up { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 640px) {
.modal-sheet {
border-radius: 16px;
max-width: 600px;
max-height: 85vh;
}
}
.modal-header {
display: flex;
align-items: center;
padding: 16px 20px 12px;
border-bottom: 1px solid var(--border);
gap: 12px;
flex-shrink: 0;
}
.modal-header-main { flex: 1; min-width: 0; }
.modal-room-name {
font-size: 20px;
font-weight: 700;
}
.modal-status-badge {
display: inline-block;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
padding: 2px 7px;
border-radius: 4px;
margin-top: 2px;
}
.modal-close {
background: none;
border: none;
cursor: pointer;
color: var(--text-muted);
padding: 6px;
border-radius: 8px;
display: flex;
}
.modal-close:hover { background: var(--body-bg); }
.modal-body {
flex: 1;
overflow-y: auto;
padding: 0;
}
/* Modal booking info bar */
.modal-booking-bar {
display: flex;
gap: 12px;
padding: 12px 20px;
background: var(--body-bg);
border-bottom: 1px solid var(--border);
flex-wrap: wrap;
}
.modal-booking-field {
display: flex;
flex-direction: column;
gap: 1px;
}
.field-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.field-value { font-size: 13px; font-weight: 600; }
/* Modal section */
.modal-section {
padding: 14px 20px;
border-bottom: 1px solid var(--border);
}
.modal-section:last-child { border-bottom: none; }
.modal-section-title {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em;
color: var(--text-muted);
margin-bottom: 10px;
}
/* Tasks in modal */
.task-list { display: flex; flex-direction: column; gap: 6px; }
.task-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
border-radius: var(--radius);
background: var(--body-bg);
transition: background .12s;
}
.task-item:hover { background: #f0fdf4; }
.task-checkbox {
width: 18px;
height: 18px;
border-radius: 4px;
border: 2px solid var(--border);
background: var(--card-bg);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all .12s;
}
.task-checkbox.checked {
background: var(--app-primary);
border-color: var(--app-primary);
color: #fff;
}
.task-checkbox.loading { opacity: .5; }
.task-label { font-size: 13px; flex: 1; }
.task-label.done { text-decoration: line-through; color: var(--text-muted); }
.task-rollover-tag {
font-size: 9px;
background: #fef3c7;
color: #92400e;
border-radius: 3px;
padding: 1px 4px;
}
/* Status update buttons in modal */
.status-btn-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.status-btn {
padding: 7px 16px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--body-bg);
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: all .12s;
}
.status-btn.active-clean { background: #d1fae5; border-color: #10b981; color: #065f46; }
.status-btn.active-dirty { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.status-btn.active-inspected { background: #ede9fe; border-color: #8b5cf6; color: #5b21b6; }
/* Notes tabs */
.notes-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.notes-tab {
padding: 4px 12px;
border-radius: 6px;
border: 1px solid var(--border);
background: var(--body-bg);
cursor: pointer;
font-size: 12px;
color: var(--text-muted);
}
.notes-tab.active { background: var(--app-primary); color: #fff; border-color: var(--app-primary); }
.note-item {
padding: 6px 10px;
border-radius: 6px;
background: var(--body-bg);
font-size: 13px;
margin-bottom: 4px;
line-height: 1.4;
}
.note-type-label { font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
/* Placeholder sections (linen, routine tasks) */
.placeholder-section {
padding: 14px 20px;
border-top: 1px solid var(--border);
opacity: .5;
text-align: center;
font-size: 12px;
color: var(--text-muted);
}
/* ── Activity panel ──────────────────────────────────────────── */
.activity-panel {
width: 260px;
flex-shrink: 0;
border-left: 1px solid var(--border);
background: var(--card-bg);
display: flex;
flex-direction: column;
overflow: hidden;
}
.activity-panel-header {
padding: 10px 12px;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .06em;
color: var(--text-muted);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.activity-list {
flex: 1;
overflow-y: auto;
padding: 4px 0;
}
.activity-item {
padding: 7px 12px;
border-bottom: 1px solid var(--border);
font-size: 12px;
}
.activity-item:last-child { border-bottom: none; }
.activity-room { font-weight: 700; font-size: 13px; }
.activity-event { color: var(--text-muted); margin-top: 1px; }
.activity-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.event-checkout { color: #6d28d9; }
.event-checkin { color: #065f46; }
.event-clean { color: #0369a1; }
.event-dirty { color: #991b1b; }
.event-tasks { color: #2d6a4f; }
@media (max-width: 1024px) {
.activity-panel { display: none; }
}
/* ── Planner layout (date-bar + filter + scroll body) ─────────── */
.planner-main {
display: flex;
flex: 1;
overflow: hidden;
}
.planner-rooms-area {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
/* ── Checkout notification toasts ────────────────────────────── */
.checkout-toasts {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 200;
display: flex;
flex-direction: column;
gap: 8px;
pointer-events: none;
}
.checkout-toast {
background: var(--card-bg);
border: 1px solid var(--col-departed);
border-left: 4px solid var(--col-departed);
border-radius: var(--radius);
padding: 10px 14px;
box-shadow: var(--shadow-md);
font-size: 13px;
max-width: 280px;
pointer-events: auto;
animation: toast-in .2s ease;
}
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } }
.toast-room { font-weight: 700; }
.toast-msg { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.toast-dismiss {
background: none;
border: none;
cursor: pointer;
color: var(--text-muted);
float: right;
padding: 0;
font-size: 14px;
line-height: 1;
}
/* ── Settings page ───────────────────────────────────────────── */
.settings-page {
padding: 20px;
max-width: 720px;
}
.settings-section {
background: var(--card-bg);
border-radius: var(--radius);
border: 1px solid var(--border);
margin-bottom: 20px;
overflow: hidden;
}
.settings-section-header {
padding: 14px 20px;
border-bottom: 1px solid var(--border);
font-weight: 600;
font-size: 15px;
}
.settings-section-body {
padding: 16px 20px;
}
.settings-row {
display: flex;
align-items: center;
gap: 16px;
padding: 8px 0;
border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-label { flex: 1; font-size: 13px; }
.settings-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.settings-input {
border: 1px solid var(--border);
border-radius: 6px;
padding: 5px 8px;
font-size: 13px;
color: var(--text-primary);
background: var(--body-bg);
}
.settings-toggle {
width: 40px;
height: 22px;
border-radius: 11px;
border: none;
cursor: pointer;
position: relative;
transition: background .15s;
flex-shrink: 0;
}
.settings-toggle.on { background: var(--app-primary); }
.settings-toggle.off { background: #d1d5db; }
.settings-toggle::after {
content: '';
position: absolute;
top: 3px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #fff;
transition: left .15s;
box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.settings-toggle.on::after { left: 21px; }
.settings-toggle.off::after { left: 3px; }
.save-btn {
background: var(--app-primary);
color: #fff;
border: none;
border-radius: 8px;
padding: 8px 20px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: background .12s;
}
.save-btn:hover { background: var(--app-primary-dark); }
.save-btn:disabled { opacity: .5; cursor: not-allowed; }
/* ── Empty / loading states ──────────────────────────────────── */
.loading-spinner {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
color: var(--text-muted);
font-size: 14px;
gap: 10px;
}
.loading-spinner svg { animation: spin .7s linear infinite; }
.error-banner {
margin: 16px;
padding: 12px 16px;
background: #fee2e2;
border: 1px solid #fca5a5;
border-radius: var(--radius);
color: #991b1b;
font-size: 13px;
}
.empty-state {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
font-size: 14px;
padding: 40px;
text-align: center;
}