/* iOS-inspired design tokens */
:root {
  --ws-bg:        #f5f6fb;
  --ws-surface:   rgba(255,255,255,0.78);
  --ws-border:    rgba(15,23,42,0.06);
  --ws-shadow:    0 20px 60px -30px rgba(15, 23, 42, 0.25);
  --ws-shadow-sm: 0 6px 20px -10px rgba(15, 23, 42, 0.18);
  --ws-indigo:    #6366f1;
  --ws-fuchsia:   #d946ef;
  --ws-mint:      #34d399;
  --ws-amber:     #fbbf24;
  --ws-rose:      #fb7185;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  background: var(--ws-bg);
  -webkit-font-smoothing: antialiased;
  color: #0f172a;
}

/* Glass card */
.ios-card {
  background: var(--ws-surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--ws-border);
  border-radius: 1.5rem;
  box-shadow: var(--ws-shadow-sm);
}

.ios-card-strong { box-shadow: var(--ws-shadow); }

/* Pastel stat cards */
.stat-card      { border-radius: 1.25rem; padding: 1rem 1.25rem; }
.stat-mint      { background: linear-gradient(135deg,#ecfccb 0%,#d1fae5 100%); }
.stat-sky       { background: linear-gradient(135deg,#e0f2fe 0%,#ddd6fe 100%); }
.stat-peach     { background: linear-gradient(135deg,#ffe4e6 0%,#fed7aa 100%); }
.stat-lilac     { background: linear-gradient(135deg,#ede9fe 0%,#fae8ff 100%); }

/* Pill / badge */
.pill { display:inline-flex; align-items:center; padding: 2px 10px;
  border-radius: 9999px; font-size: 11px; font-weight: 600; }
.pill-paid     { background:#dcfce7; color:#166534; }
.pill-pending  { background:#fef3c7; color:#92400e; }
.pill-overdue  { background:#ffe4e6; color:#9f1239; }
.pill-draft    { background:#e2e8f0; color:#475569; }
.pill-sent     { background:#dbeafe; color:#1e40af; }

/* Sidebar item */
.nav-item {
  display:flex; align-items:center; gap:.75rem;
  padding:.6rem .9rem; border-radius:.9rem;
  color:#475569; font-size:.875rem; font-weight:500;
  transition: all .15s ease;
}
.nav-item:hover { background: rgba(99,102,241,.08); color:#4338ca; }
.nav-item.active {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  color:#4338ca; box-shadow: inset 0 0 0 1px rgba(99,102,241,.18);
}

/* Inputs */
input, select, textarea {
  border-radius: .75rem;
}

/* Floating chat widget */
.chat-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#d946ef);
  color: white; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 15px 40px -10px rgba(99,102,241,.6);
  z-index: 50; cursor: pointer;
}
.chat-panel {
  position: fixed; right: 1.25rem; bottom: 5.5rem;
  width: 360px; max-width: calc(100vw - 2rem); height: 520px; max-height: 70vh;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border-radius: 1.5rem; box-shadow: 0 30px 80px -20px rgba(15,23,42,.35);
  border: 1px solid rgba(255,255,255,.6); overflow: hidden;
  z-index: 49; display:flex; flex-direction:column;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(15,23,42,.12); border-radius: 4px; }

/* Kanban column */
.kanban-col { background: rgba(255,255,255,0.6); border-radius: 1.25rem; padding: 1rem; min-height: 300px; }
