/* ===========================================================================
   THEME TOKENS
   Semua warna diambil dari variabel ini, sehingga mode gelap & terang
   berlaku konsisten di seluruh halaman (login, papan, kalender, pengaturan,
   modal, notifikasi).
   =========================================================================== */
:root,
:root[data-theme="dark"] {
  --bg: #0B0C10;
  --text: #F5F6FA;
  --text-muted: rgba(245, 246, 250, 0.65);
  --text-dim: rgba(245, 246, 250, 0.4);
  --text-faint: rgba(245, 246, 250, 0.28);

  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-soft: rgba(255, 255, 255, 0.06);

  --accent-a: #6C7CFF;
  --accent-b: #B98CF2;
  --on-accent: #0B0C10;
  --accent-text: #B0B8FF;

  --danger: #FF9E9E;
  --danger-bg: rgba(255, 90, 90, 0.12);
  --warn: #F5A85A;

  --blob-1: #5B5FEF;
  --blob-2: #E85D9E;
  --blob-3: #34D8C6;
  --blob-opacity-1: 0.35;
  --blob-opacity-2: 0.3;
  --blob-opacity-3: 0.25;

  --overlay: rgba(0, 0, 0, 0.55);
  --avatar-ring: #0B0C10;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #EDEFF6;
  --text: #16181F;
  --text-muted: rgba(22, 24, 31, 0.68);
  --text-dim: rgba(22, 24, 31, 0.45);
  --text-faint: rgba(22, 24, 31, 0.3);

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 8px 32px rgba(60, 65, 100, 0.14);

  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.66);
  --surface-strong: rgba(22, 24, 31, 0.08);
  --hairline: rgba(22, 24, 31, 0.12);
  --hairline-soft: rgba(22, 24, 31, 0.08);

  --accent-a: #5B6BF5;
  --accent-b: #A876EC;
  --on-accent: #FFFFFF;
  --accent-text: #4E5BD8;

  --danger: #C2384A;
  --danger-bg: rgba(194, 56, 74, 0.1);
  --warn: #B46A17;

  --blob-1: #8B93FF;
  --blob-2: #FF9CC8;
  --blob-3: #7BE8DA;
  --blob-opacity-1: 0.5;
  --blob-opacity-2: 0.42;
  --blob-opacity-3: 0.38;

  --overlay: rgba(30, 32, 45, 0.35);
  --avatar-ring: #FFFFFF;
  color-scheme: light;
}

/* =========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  transition: background-color .25s ease, color .25s ease;
}
.font-display { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-thumb { background: var(--surface-strong); border-radius: 4px; }

input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-a);
  outline-offset: 2px;
}
input, textarea, select, button { font-family: inherit; }

/* Background blobs */
.blob-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); transition: background-color .3s ease, opacity .3s ease; }
.blob1 { top: -10%; left: -10%; width: 480px; height: 480px; background: var(--blob-1); opacity: var(--blob-opacity-1); animation: blobMove1 26s ease-in-out infinite; }
.blob2 { top: 20%; right: -15%; width: 420px; height: 420px; background: var(--blob-2); opacity: var(--blob-opacity-2); animation: blobMove2 32s ease-in-out infinite; }
.blob3 { bottom: -15%; left: 20%; width: 500px; height: 500px; background: var(--blob-3); opacity: var(--blob-opacity-3); animation: blobMove3 22s ease-in-out infinite; }
@keyframes blobMove1 { 0% { transform: translate(-10%,-10%) scale(1);} 50% { transform: translate(6%,8%) scale(1.15);} 100% { transform: translate(-10%,-10%) scale(1);} }
@keyframes blobMove2 { 0% { transform: translate(8%,6%) scale(1);} 50% { transform: translate(-8%,-10%) scale(1.1);} 100% { transform: translate(8%,6%) scale(1);} }
@keyframes blobMove3 { 0% { transform: translate(0,0) scale(1);} 50% { transform: translate(-6%,10%) scale(1.2);} 100% { transform: translate(0,0) scale(1);} }
@media (prefers-reduced-motion: reduce) { .blob1,.blob2,.blob3 { animation: none !important; } }

#app { position: relative; z-index: 10; min-height: 100vh; }

/* ===========================================================================
   LAYOUT ADAPTIF
   HP  : satu kolom, kartu digeser horizontal, jarak rapat.
   Tab : lebih lebar, tiga kolom papan, sel kalender lebih tinggi.
   PC  : lebar penuh terkendali, tipografi & jarak lebih lega.
   =========================================================================== */
.app-container {
  width: 100%;
  margin: 0 auto;
  padding: 16px 14px 96px;
  --cell-h: 116px;
  --board-min-h: 0px;
  --gap: 14px;
}
@media (min-width: 640px) {
  .app-container { max-width: 780px; padding: 22px 20px 100px; --cell-h: 132px; --gap: 16px; }
}
@media (min-width: 900px) {
  .app-container { max-width: 880px; padding: 26px 24px 100px; --cell-h: 148px; --gap: 18px; --board-min-h: 58vh; }
}
@media (min-width: 1100px) {
  .app-container { max-width: 1060px; --cell-h: 156px; --gap: 18px; --board-min-h: 60vh; }
}
@media (min-width: 1300px) {
  .app-container { max-width: 1220px; padding: 30px 28px 110px; --cell-h: 164px; --gap: 20px; --board-min-h: 62vh; }
}
@media (min-width: 1700px) {
  .app-container { max-width: 1480px; padding: 34px 32px 110px; --cell-h: 180px; --gap: 22px; --board-min-h: 66vh; }
}

/* Papan Kanban */
.board { display: flex; gap: var(--gap); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; align-items: stretch; }
.board-col { flex: 0 0 84%; min-width: 250px; scroll-snap-align: start; }
.board-col-inner { border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: var(--board-min-h); }
@media (min-width: 560px) {
  .board-col { flex: 0 0 47%; }
}
@media (min-width: 860px) {
  /* Kolom membagi ruang rata; kalau papannya banyak, otomatis bisa digeser. */
  .board { scroll-snap-type: none; }
  .board-col { flex: 1 1 0; min-width: 245px; }
}
.board-cards { display: flex; flex-direction: column; gap: 10px; }

/* Kalender & catatan mengikuti lebar container */
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); min-height: var(--cell-h); }
.notes-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 640px) { .notes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .notes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1700px) { .notes-grid { grid-template-columns: repeat(4, 1fr); } }

/* Ukuran teks ikut membesar di layar besar */
@media (min-width: 1300px) {
  .task-card { padding: 14px; }
  .cal-daynum { width: 24px; height: 24px; font-size: 12.5px; }
  .cal-bar { height: 20px; font-size: 11.5px; }
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Auth */
.field { display:flex; align-items:center; gap:8px; border-radius:12px; padding:0 12px; background: var(--surface); border:1px solid var(--hairline); color: var(--text-dim); }
.field input { width:100%; background:transparent; border:none; outline:none; color:var(--text); font-size:13.5px; padding:10px 0; }
.link-btn { background:none; border:none; color:var(--accent-text); font-weight:600; cursor:pointer; font-size:13px; }

.btn-primary { width:100%; display:flex; align-items:center; justify-content:center; gap:6px; border-radius:12px; padding:10px 0; font-weight:700; background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:var(--on-accent); border:none; cursor:pointer; font-size:13.5px; }
.btn-secondary { border-radius:12px; padding:10px 16px; background:var(--surface-strong); color:var(--text-muted); border:none; cursor:pointer; font-size:13px; }
.btn-danger { display:flex; align-items:center; gap:6px; border-radius:12px; padding:10px 14px; background:var(--danger-bg); color:var(--danger); border:none; cursor:pointer; font-size:13px; }

/* Header / nav */
.seg-btn { display:flex; align-items:center; gap:6px; border-radius:999px; padding:6px 12px; font-size:13px; background:transparent; color:var(--text-muted); font-weight:500; border:none; cursor:pointer; }
.seg-active { background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:var(--on-accent); font-weight:700; }
.icon-btn { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:999px; background:var(--surface); color:var(--text-muted); border:none; cursor:pointer; text-decoration:none; flex-shrink:0; }
.icon-btn-primary { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:12px; background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:var(--on-accent); border:none; cursor:pointer; flex-shrink:0; }

.avatar { display:flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:999px; color:#12131A; font-size:11px; font-weight:700; border:2px solid var(--avatar-ring); }
.avatar-sm { width:22px; height:22px; font-size:9px; }
.avatar-xs { display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; border-radius:999px; color:#12131A; font-size:7.5px; font-weight:700; border:1.5px solid var(--avatar-ring); flex-shrink:0; }

.fab { position:fixed; right:20px; bottom:24px; width:56px; height:56px; border-radius:999px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); box-shadow:0 10px 30px rgba(108,124,255,0.45); color:var(--on-accent); border:none; cursor:pointer; z-index:30; }

/* Notification bell */
.bell-wrap { position:relative; }
.bell-badge { position:absolute; top:-2px; right:-2px; min-width:17px; height:17px; padding:0 4px; border-radius:999px; background:#F0554F; color:#fff; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center; border:2px solid var(--bg); }
.notif-panel { position:absolute; right:0; top:42px; width:300px; max-width:calc(100vw - 40px); border-radius:18px; padding:12px; z-index:40; max-height:60vh; overflow-y:auto; }
.notif-row { display:flex; gap:10px; align-items:flex-start; padding:9px 10px; border-radius:12px; background:var(--surface-2); cursor:pointer; }
.notif-dot { width:8px; height:8px; border-radius:999px; margin-top:5px; flex-shrink:0; }
.sev-overdue { color:#F0554F; }
.sev-today { color:var(--warn); }
.sev-soon { color:var(--text-muted); }

/* Kanban */
.task-card { position:relative; border-radius:14px; padding:12px; background:var(--surface-2); border:1px solid var(--hairline-soft); cursor:pointer; }
.task-card-bar { position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:4px; }
.clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-1 { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.pill { display:flex; align-items:center; gap:4px; border-radius:999px; padding:4px 8px; background:var(--surface); color:var(--text-muted); font-size:11px; }
.pill-overdue { background:rgba(240,85,79,0.16); color:#F0554F; font-weight:600; }
.pill-soon { background:rgba(245,168,90,0.18); color:var(--warn); font-weight:600; }
.chev-btn { background:none; border:none; color:var(--text-muted); cursor:pointer; padding:2px; }
.chev-btn:disabled { color:var(--text-faint); cursor:default; }

/* Calendar */
.cal-cell { cursor:pointer; padding:4px 4px 0; border-top:1px solid var(--hairline-soft); }
.cal-daynum { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:999px; font-size:11.5px; color:var(--text-muted); font-weight:500; }
.cal-today { background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:var(--on-accent) !important; font-weight:700; }
.cal-bar { position:absolute; pointer-events:auto; cursor:pointer; height:18px; border-radius:999px; color:#12131A; font-size:10.5px; font-weight:600; display:flex; align-items:center; gap:4px; padding:0 7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-bar-title { flex:1; overflow:hidden; text-overflow:ellipsis; }
.today-btn { border-radius:999px; padding:4px 12px; font-size:12px; background:var(--surface-strong); color:var(--text-muted); border:none; cursor:pointer; }
.nav-btn { display:flex; align-items:center; justify-content:center; background:var(--surface-strong); border:none; border-radius:999px; width:28px; height:28px; color:var(--text); cursor:pointer; }
.today-row { display:flex; align-items:center; gap:10px; border-radius:12px; padding:8px 12px; background:var(--surface-2); cursor:pointer; }

/* Calendar: Gantt mode */
.gantt-wrap { margin-top:10px; }
.gantt-scroll { overflow-x:auto; border-radius:12px; border:1px solid var(--hairline-soft); }
.gantt-header { display:flex; position:sticky; top:0; z-index:2; background:var(--surface); border-bottom:1px solid var(--hairline-soft); }
.gantt-label-head { width:128px; min-width:128px; flex-shrink:0; position:sticky; left:0; z-index:3; background:var(--surface); padding:8px 10px; font-size:11px; font-weight:600; color:var(--text-dim); border-right:1px solid var(--hairline-soft); display:flex; align-items:center; }
.gantt-daybar { display:flex; }
.gantt-daycell { flex-shrink:0; text-align:center; font-size:10px; color:var(--text-dim); padding:8px 0; border-right:1px solid var(--hairline-soft); }
.gantt-daycell-today { color:var(--on-accent); font-weight:700; background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); border-radius:6px; margin:2px; padding:6px 0; }
.gantt-row { display:flex; border-bottom:1px solid var(--hairline-soft); }
.gantt-row:last-child { border-bottom:none; }
.gantt-label { width:128px; min-width:128px; flex-shrink:0; position:sticky; left:0; z-index:1; background:var(--surface-2); display:flex; align-items:center; gap:6px; padding:8px 10px; font-size:12px; color:var(--text); cursor:pointer; border-right:1px solid var(--hairline-soft); }
.gantt-track { position:relative; height:38px; flex-shrink:0; }
.gantt-bar { position:absolute; top:8px; height:22px; border-radius:8px; color:#12131A; font-size:10.5px; font-weight:600; display:flex; align-items:center; padding:0 8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }

/* Modal */
.modal-overlay { position:fixed; inset:0; background:var(--overlay); z-index:50; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-panel { width:100%; max-width:480px; border-radius:24px; padding:20px; max-height:88vh; overflow-y:auto; }
.modal-tabs { display:flex; gap:4px; border-bottom:1px solid var(--hairline); margin-top:10px; }
.modal-tab { background:none; border:none; color:var(--text-dim); font-size:13px; padding:8px 10px; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; }
.modal-tab-active { color:var(--text); font-weight:600; border-bottom-color:var(--accent-a); }

.f-label { display:block; color:var(--text-dim); font-size:12px; margin-bottom:4px; font-weight:500; }
.f-input { width:100%; background:var(--surface); border:1px solid var(--hairline); border-radius:10px; padding:9px 11px; color:var(--text); font-size:13.5px; outline:none; }
.color-dot { width:30px; height:30px; border-radius:999px; cursor:pointer; display:block; }

.assignee-list { display:flex; flex-direction:column; gap:6px; max-height:160px; overflow-y:auto; border:1px solid var(--hairline); border-radius:12px; padding:8px; }
.assignee-item { display:flex; align-items:center; gap:8px; cursor:pointer; padding:4px; }

.upload-btn { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; border-radius:12px; padding:9px 14px; background:var(--surface-strong); color:var(--text); font-size:13px; cursor:pointer; }
.attachment-row { display:flex; align-items:center; gap:10px; border-radius:12px; padding:8px 10px; background:var(--surface-2); }

.activity-row { display:flex; gap:10px; padding:8px 2px; }
.comment-bubble { margin-top:4px; padding:8px 10px; border-radius:12px; background:var(--surface); font-size:13px; color:var(--text-muted); line-height:1.4; }

/* Header & kontrol papan */
.col-head { display:flex; align-items:center; gap:6px; padding:2px 2px 0; }
.col-name { font-size:13.5px; font-weight:700; color:var(--text); flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.col-count { border-radius:999px; padding:1px 8px; font-size:11.5px; background:var(--surface-strong); color:var(--text-muted); flex-shrink:0; }
.col-menu-btn { background:none; border:none; color:var(--text-dim); cursor:pointer; padding:2px; display:flex; flex-shrink:0; border-radius:6px; }
.col-menu-btn:hover { color:var(--text); background:var(--surface); }
.col-done .col-name { color:var(--text-muted); }
.col-empty { border:1px dashed var(--hairline); border-radius:12px; padding:20px 8px; text-align:center; font-size:11.5px; color:var(--text-faint); }
.col-add-card { margin-top:auto; display:flex; align-items:center; justify-content:center; gap:5px; border:none; border-radius:11px; padding:8px; background:var(--surface); color:var(--text-muted); font-size:12px; cursor:pointer; }
.col-add-card:hover { color:var(--text); }

.board-col-add { display:flex; flex: 0 0 62%; min-width:170px; }
.add-col-btn { width:100%; min-height:88px; border-radius:18px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; color:var(--text-muted); font-size:12.5px; cursor:pointer; border:1px dashed var(--glass-border); }
.add-col-btn:hover { color:var(--text); }
@media (min-width: 560px) { .board-col-add { flex: 0 0 34%; } }
@media (min-width: 860px) { .board-col-add { flex: 0 0 152px; min-width:152px; } }

/* Handle geser */
.col-handle, .card-handle {
  display:flex; align-items:center; justify-content:center;
  color:var(--text-faint); cursor:grab; flex-shrink:0;
  touch-action:none; padding:3px; margin:-3px; border-radius:6px;
}
.col-handle:hover, .card-handle:hover { color:var(--text-muted); background:var(--surface); }
.col-handle:active, .card-handle:active { cursor:grabbing; }

/* Status saat menggeser */
.drag-ghost {
  position:fixed; z-index:80; pointer-events:none; margin:0;
  opacity:.94; transform-origin:center;
  box-shadow:0 18px 40px rgba(0,0,0,.4); border-radius:14px;
  rotate:1.5deg;
}
.drag-ghost .board-col-inner { min-height:0; }
.drag-source { opacity:.32; }
.drag-source .task-card-bar { opacity:.4; }
body.dragging-active { user-select:none; -webkit-user-select:none; }
body.dragging-active .task-card, body.dragging-active .board-col { cursor:grabbing; }

/* To-do (gaya Microsoft To Do) */
.todo-wrap { max-width: 760px; margin: 0 auto; }
.todo-quick { display:flex; align-items:center; gap:10px; border-radius:16px; padding:12px 14px; }
.todo-quick input { flex:1; background:transparent; border:none; outline:none; color:var(--text); font-size:14px; min-width:0; }
.todo-item { display:flex; align-items:flex-start; gap:11px; border-radius:14px; padding:11px 12px; cursor:pointer; }
.todo-check { width:21px; height:21px; border-radius:999px; border:2px solid var(--text-dim); background:transparent; cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--on-accent); margin-top:1px; padding:0; }
.todo-check:hover { border-color: var(--accent-a); }
.todo-check-on { background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); border-color:transparent; }
.todo-body { flex:1; min-width:0; }
.todo-title { color:var(--text); font-size:14px; font-weight:500; line-height:1.35; overflow-wrap:anywhere; }
.todo-done .todo-title { color:var(--text-dim); text-decoration:line-through; }
.todo-meta-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:4px; }
.todo-meta { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--text-dim); border-radius:999px; padding:2px 8px; background:var(--surface); }
.todo-meta.sev-overdue { color:#F0554F; background:rgba(240,85,79,0.14); }
.todo-meta.sev-today { color:var(--warn); background:rgba(245,168,90,0.16); }
.tagged-badge { color:var(--accent-text); background:rgba(108,124,255,0.14); }
.todo-star { background:none; border:none; color:var(--text-faint); cursor:pointer; padding:4px; margin-top:-1px; flex-shrink:0; }
.todo-star:hover { color:var(--warn); }
.todo-star-on { color:var(--warn); }
.todo-star-on svg { fill: currentColor; }
.todo-done-toggle { display:flex; align-items:center; gap:6px; background:none; border:none; color:var(--text-muted); font-size:13px; font-weight:600; cursor:pointer; padding:10px 4px 2px; margin-top:8px; }
.day-picker { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
.day-dot { width:40px; height:32px; border-radius:10px; border:1px solid var(--hairline); background:var(--surface); color:var(--text-muted); font-size:11.5px; cursor:pointer; }
.day-dot-on { background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:var(--on-accent); border-color:transparent; font-weight:700; }
.tagged-banner { display:flex; align-items:center; gap:7px; border-radius:11px; padding:8px 11px; margin-bottom:12px; background:rgba(108,124,255,0.12); color:var(--accent-text); font-size:12.5px; }

/* Kartu catatan */
.note-card { position:relative; border-radius:18px; padding:14px 14px 12px; cursor:pointer; display:flex; flex-direction:column; gap:8px; min-height:120px; }
.note-accent { position:absolute; left:0; top:14px; bottom:14px; width:3px; border-radius:4px; }
.note-body { color:var(--text-muted); font-size:12.5px; line-height:1.45; white-space:pre-wrap; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.note-empty { border-radius:20px; padding:40px 20px; text-align:center; color:var(--text-dim); font-size:13px; }
.notes-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.filter-group { display:flex; gap:4px; border-radius:999px; padding:4px; background:var(--surface); }
.filter-btn { border:none; background:transparent; color:var(--text-muted); font-size:12.5px; padding:5px 12px; border-radius:999px; cursor:pointer; display:inline-flex; align-items:center; gap:4px; }
.filter-btn-active { background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); color:var(--on-accent); font-weight:600; }
.check-btn { display:flex; align-items:center; gap:5px; border:none; border-radius:999px; padding:4px 9px; font-size:11px; cursor:pointer; background:var(--surface-strong); color:var(--text-muted); }
.check-btn-done { background:rgba(63,224,197,0.18); color:#1F9E8A; }

/* Settings page */
.settings-section { border-radius:20px; padding:16px; }
.settings-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:2px; }
.settings-sub { font-size:12px; color:var(--text-dim); margin-bottom:14px; }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 0; border-top:1px solid var(--hairline-soft); }
.setting-row-first { border-top:none; }
.setting-label { font-size:13.5px; color:var(--text); font-weight:500; }
.setting-help { font-size:11.5px; color:var(--text-dim); margin-top:2px; }

.theme-options { display:flex; gap:8px; margin-top:10px; }
.theme-card { flex:1; border-radius:14px; padding:12px 8px; background:var(--surface-2); border:2px solid transparent; cursor:pointer; text-align:center; color:var(--text-muted); font-size:12.5px; display:flex; flex-direction:column; align-items:center; gap:6px; }
.theme-card-active { border-color:var(--accent-a); color:var(--text); font-weight:600; }

/* Toggle switch */
.switch { position:relative; display:inline-block; width:44px; height:25px; flex-shrink:0; }
.switch input { opacity:0; width:0; height:0; }
.slider { position:absolute; cursor:pointer; inset:0; background:var(--surface-strong); border-radius:999px; transition:.25s; }
.slider:before { position:absolute; content:""; height:19px; width:19px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:.25s; box-shadow:0 1px 3px rgba(0,0,0,0.3); }
.switch input:checked + .slider { background:linear-gradient(135deg,var(--accent-a),var(--accent-b)); }
.switch input:checked + .slider:before { transform:translateX(19px); }
.switch input:focus-visible + .slider { outline:2px solid var(--accent-a); outline-offset:2px; }

.number-input { width:74px; text-align:center; background:var(--surface); border:1px solid var(--hairline); border-radius:10px; padding:7px; color:var(--text); font-size:13.5px; outline:none; }

.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:96px; z-index:60; border-radius:999px; padding:10px 18px; font-size:13px; font-weight:500; color:var(--text); }

/* Status penerima to-do (sisi pengirim) */
.recip-chip { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:16px; padding:0 4px; border-radius:999px; background:var(--surface-strong); color:var(--text-muted); font-size:9px; font-weight:700; margin-left:2px; }
.recip-done { background:rgba(63,224,197,0.25); color:#1F9E8A; }
.recip-meta-done { color:#1F9E8A; background:rgba(63,224,197,0.14); }
.recip-panel { border:1px solid var(--hairline); border-radius:14px; padding:11px 12px; margin-bottom:14px; background:var(--surface-2); }
.recip-row { display:flex; align-items:center; gap:9px; padding:5px 0; }
.recip-status { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--text-dim); }
.recip-status-done { color:#1F9E8A; font-weight:600; }
