@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-md: #cbd5e1;
  --primary: #1d4ed8;
  --primary-h: #1e40af;
  --primary-bg: #eff6ff;
  --primary-bd: #bfdbfe;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --sidebar-w: 236px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow: 0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.11);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); display: flex; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ── Layout ── */
#sidebar { width: var(--sidebar-w); min-height: 100vh; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; }
#main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; }
#content { padding: 32px 36px; max-width: 1160px; }

/* ── Sidebar ── */
.sidebar-logo { padding: 18px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; }
.logo-mark { width: 30px; height: 30px; background: var(--primary); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.sidebar-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.nav-label { font-size: 10px; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: .09em; padding: 14px 8px 6px; }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; cursor: pointer; color: var(--text-3); font-size: 13.5px; font-weight: 500; transition: all .12s; margin-bottom: 1px; border: none; background: none; width: 100%; text-align: left; font-family: inherit; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; opacity: .7; }
.nav-item.active svg { opacity: 1; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.user-block { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.user-info .name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.user-info .role { font-size: 11px; color: var(--text-4); }
.logout-btn { margin-left: auto; background: none; border: none; color: var(--text-4); cursor: pointer; padding: 4px; border-radius: 5px; display: flex; transition: color .12s; }
.logout-btn:hover { color: var(--danger); }
.logout-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Sections ── */
.section { display: none; }
.section.active { display: block; animation: fadeUp .2s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.section-header h2 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.section-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-header h3 { font-size: 13.5px; font-weight: 600; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 15px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .12s; white-space: nowrap; font-family: inherit; text-decoration: none; }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); border-color: var(--border-md); }
.btn-ghost.active { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-bd); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger-ghost { background: transparent; color: var(--danger); border: 1px solid #fecaca; }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-group { display: flex; }
.btn-group .btn { border-radius: 0; border-right-width: 0; }
.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.btn-group .btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }

/* ── Inputs ── */
.input { width: 100%; padding: 7px 11px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 13px; font-family: inherit; transition: all .12s; outline: none; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.input::placeholder { color: var(--text-4); }
.input-sm { padding: 4px 8px; font-size: 12px; }
textarea.input { resize: vertical; }
select.input { cursor: pointer; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-help { font-size: 11px; color: var(--text-4); }
.form-section { margin: 14px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.form-section-header { background: var(--bg); padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th { padding: 9px 13px; text-align: left; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); background: var(--bg); white-space: nowrap; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody td { padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.table-toolbar { padding: 10px 0 14px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.actions { display: flex; gap: 4px; }
.mono { font-family: 'SF Mono', monospace; font-size: 12px; color: var(--primary); font-weight: 600; }
.fw-600 { font-weight: 600; }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-3); }
.text-success { color: var(--success); }
a.link { color: var(--primary); text-decoration: none; }
a.link:hover { text-decoration: underline; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.badge-success { background: var(--success-bg); color: var(--success); border-color: #a7f3d0; }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: #fde68a; }
.badge-danger  { background: var(--danger-bg); color: var(--danger); border-color: #fecaca; }
.badge-info    { background: var(--info-bg); color: var(--info); border-color: #bae6fd; }
.badge-neutral { background: #f1f5f9; color: var(--text-3); border-color: var(--border); }
.badge-primary { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-bd); }

/* ── Dashboard ── */
.dash-greeting { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; cursor: pointer; transition: all .15s; }
.stat-card:hover { border-color: var(--primary-bd); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.stat-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warn .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.primary .stat-value { color: var(--primary); }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.today-item { display: flex; align-items: center; gap: 9px; padding: 9px 6px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .1s; }
.today-item:last-child { border-bottom: none; }
.today-item:hover { background: var(--bg); border-radius: 6px; }
.today-time { font-size: 11.5px; font-weight: 700; color: var(--primary); width: 38px; flex-shrink: 0; }
.today-bar { width: 3px; height: 28px; border-radius: 2px; flex-shrink: 0; }
.today-title { font-size: 13px; font-weight: 600; }
.today-client { font-size: 11.5px; color: var(--text-3); }
.invoice-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; border-bottom: 1px solid var(--border); }
.invoice-row:last-child { border-bottom: none; }
.invoice-num { font-family: monospace; font-size: 12px; color: var(--primary); font-weight: 600; }
.invoice-client { font-size: 11.5px; color: var(--text-3); }
.invoice-amount { font-weight: 700; font-size: 13.5px; }
.empty-sm { padding: 20px 6px; text-align: center; color: var(--text-3); font-size: 13px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 7px; }

/* ── Status colors ── */
.status-gepland    { background: var(--info-bg); color: var(--info); border-color: #bae6fd; }
.status-bezig      { background: var(--warning-bg); color: var(--warning); border-color: #fde68a; }
.status-voltooid   { background: var(--success-bg); color: var(--success); border-color: #a7f3d0; }
.status-geannuleerd{ background: #f8fafc; color: var(--text-3); border-color: var(--border); }
.bar-gepland    { background: var(--info); }
.bar-bezig      { background: var(--warning); }
.bar-voltooid   { background: var(--success); }
.bar-geannuleerd{ background: var(--text-4); }

/* ── Calendar ── */
.cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal-month { font-size: 14px; font-weight: 700; flex: 1; text-align: center; text-transform: capitalize; }
.calendar { display: grid; grid-template-columns: repeat(7,1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-head { background: var(--bg); padding: 7px 4px; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.cal-day { min-height: 80px; padding: 5px; cursor: pointer; transition: background .1s; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-day:hover { background: var(--primary-bg); }
.cal-day.other { opacity: .5; background: var(--bg); }
.cal-day.today { background: #eff6ff; }
.cal-day-num { font-size: 11.5px; font-weight: 600; color: var(--text-3); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin-bottom: 2px; }
.cal-day.today .cal-day-num { background: var(--primary); color: #fff; }
.cal-event { font-size: 10px; padding: 2px 4px; border-radius: 3px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; cursor: pointer; }
.cal-more { font-size: 10px; color: var(--text-3); }

/* ── Planning list ── */
.plan-day-label { display: flex; align-items: center; gap: 7px; padding: 10px 0 5px; border-bottom: 1px solid var(--border); margin-bottom: 2px; }
.plan-day-text { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.plan-item { display: flex; align-items: center; gap: 9px; padding: 10px 6px; border-bottom: 1px solid var(--border); transition: background .1s; }
.plan-item:last-child { border-bottom: none; }
.plan-item:hover { background: var(--bg); border-radius: 6px; }
.plan-time { font-size: 11.5px; font-weight: 700; color: var(--primary); width: 38px; flex-shrink: 0; }
.plan-bar { width: 3px; height: 32px; border-radius: 2px; flex-shrink: 0; }
.plan-title { font-size: 13px; font-weight: 600; }
.plan-meta { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.plan-actions { display: flex; gap: 4px; margin-left: auto; }

/* ── Custom fields ── */
.custom-fields-list { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cf-row { display: flex; gap: 7px; align-items: center; }
.attachments-list { padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.att-row { display: flex; align-items: center; gap: 7px; padding: 6px 9px; background: var(--bg); border-radius: 6px; border: 1px solid var(--border); }
.att-thumb { width: 30px; height: 30px; object-fit: cover; border-radius: 4px; }
.att-icon-box { width: 30px; height: 30px; background: var(--primary-bg); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.att-icon-box svg { width: 14px; height: 14px; stroke: var(--primary); fill: none; }
.att-name { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-size { font-size: 10.5px; color: var(--text-4); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(80px,1fr)); gap: 7px; }
.att-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; text-decoration: none; color: var(--text-3); font-size: 10.5px; text-align: center; transition: all .12s; }
.att-card:hover { border-color: var(--primary-bd); color: var(--primary); background: var(--primary-bg); }
.att-card img { width: 100%; height: 55px; object-fit: cover; border-radius: 4px; }
.att-card-icon { height: 55px; display: flex; align-items: center; justify-content: center; }
.att-card-icon svg { width: 24px; height: 24px; stroke: var(--text-4); fill: none; }

/* ── Invoice line items ── */
.line-items { padding: 8px; }
.line-head { display: flex; gap: 7px; padding-bottom: 5px; font-size: 10.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; border-bottom: 1px solid var(--border); margin-bottom: 7px; }
.line-row { display: flex; gap: 7px; margin-bottom: 5px; align-items: center; }
.totals-block { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.totals-display { margin-left: auto; min-width: 210px; }
.total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.total-row.grand { border-top: 2px solid var(--border); margin-top: 5px; padding-top: 8px; font-weight: 700; font-size: 15px; color: var(--text); }

/* ── Tabs ── */
.tab-bar { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tab-btn { background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-3); font-size: 13px; font-weight: 500; padding: 7px 13px; cursor: pointer; font-family: inherit; transition: all .12s; margin-bottom: -1px; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { border-bottom-color: var(--primary); color: var(--primary); font-weight: 600; }

/* ── Finance ── */
.finance-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin-bottom: 18px; }

/* ── Settings ── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-card h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ── Detail views ── */
.detail-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.detail-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-bg); border: 2px solid var(--primary-bd); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.detail-item { background: var(--bg); border-radius: 7px; padding: 9px 13px; }
.detail-item label { font-size: 10.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 3px; }
.detail-section h4 { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 7px; }
.cf-display { display: flex; flex-direction: column; gap: 4px; }
.cf-display-row { display: flex; gap: 9px; padding: 7px 11px; background: var(--bg); border-radius: 6px; border: 1px solid var(--border); font-size: 12.5px; }
.cf-key { font-weight: 600; color: var(--text-2); min-width: 90px; }

/* ── Modal ── */
#modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.4); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .15s; }
#modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; width: 90vw; animation: modalIn .15s ease; }
.modal-md { max-width: 520px; }
.modal-lg { max-width: 740px; }
@keyframes modalIn { from { transform: scale(.97) translateY(5px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; margin-bottom: 16px; }
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-4); font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 5px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 0 20px 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 7px; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--border); }

/* ── AI Chat ── */
.ai-chat-wrap { display: flex; flex-direction: column; height: 540px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ai-welcome { text-align: center; padding: 32px 16px; }
.ai-welcome h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.ai-welcome p { color: var(--text-3); font-size: 13.5px; }
.chat-message { display: flex; gap: 9px; align-items: flex-start; }
.chat-message.user { flex-direction: row-reverse; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--text-3); }
.chat-message.user .msg-avatar { background: var(--primary); color: #fff; border-color: var(--primary); }
.msg-content { max-width: 74%; border-radius: 10px; padding: 9px 13px; font-size: 13px; line-height: 1.65; }
.chat-message.assistant .msg-content { background: var(--bg); border: 1px solid var(--border); border-radius: 3px 10px 10px 10px; }
.chat-message.user .msg-content { background: var(--primary); color: #fff; border-radius: 10px 3px 10px 10px; }
.msg-time { font-size: 10px; color: var(--text-4); padding: 2px 3px; }
.typing-dots { display: flex; gap: 4px; padding: 5px 2px; }
.typing-dots span { width: 5px; height: 5px; background: var(--text-4); border-radius: 50%; animation: bounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)} }
.chat-input-area { border-top: 1px solid var(--border); padding: 10px 14px; background: var(--bg); }
.suggestion-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.chip { background: var(--surface); border: 1px solid var(--border); color: var(--text-3); font-size: 11.5px; padding: 4px 10px; border-radius: 20px; cursor: pointer; font-family: inherit; transition: all .12s; }
.chip:hover { border-color: var(--primary-bd); color: var(--primary); background: var(--primary-bg); }
.chat-row { display: flex; gap: 7px; align-items: flex-end; }
.chat-textarea { flex: 1; resize: none; min-height: 36px; max-height: 100px; overflow-y: auto; border-radius: 7px; }

/* ── Toast ── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 7px; }
.toast { display: flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 9px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateX(14px); transition: all .22s ease; min-width: 210px; border: 1px solid; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: #fff; border-color: #a7f3d0; color: var(--success); }
.toast-error   { background: #fff; border-color: #fecaca; color: var(--danger); }
.toast-info    { background: #fff; border-color: var(--border); color: var(--text); }
.toast-icon { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; font-weight: 700; }
.toast-success .toast-icon { background: var(--success-bg); color: var(--success); }
.toast-error   .toast-icon { background: var(--danger-bg); color: var(--danger); }
.toast-info    .toast-icon { background: var(--primary-bg); color: var(--primary); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-icon { width: 44px; height: 44px; background: var(--bg); border: 1px solid var(--border); border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.empty-icon svg { width: 22px; height: 22px; stroke: var(--text-4); fill: none; }
.empty-state p { color: var(--text-3); font-size: 13.5px; }

/* ── Hamburger ── */
.hamburger { display: none; position: fixed; top: 10px; left: 10px; z-index: 200; background: #fff; border: 1px solid var(--border); padding: 6px 8px; border-radius: 7px; cursor: pointer; }
.hamburger svg { width: 17px; height: 17px; stroke: var(--text-2); fill: none; display: block; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .finance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  #sidebar { transform: translateX(-100%); transition: transform .25s; }
  #sidebar.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.1); }
  #main { margin-left: 0; }
  #content { padding: 16px; padding-top: 52px; }
  .hamburger { display: flex; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
