/* ============================================================
   PATEL & CO. CA DASHBOARD — style.css
   Refined Dark + Professional Light Theme
   Font: Syne (headings) + DM Sans (body)
   ============================================================ */

:root {
  --bg-main: #f0f4fb;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-topbar: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-sidebar: #cbd5e1;
  --text-sidebar-active: #ffffff;
  --accent: #3b82f6;
  --accent2: #6366f1;
  --border: #e2e8f0;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --sidebar-w: 240px;
  --radius: 16px;
  --radius-sm: 10px;
}

[data-theme="dark"] {
  --bg-main: #0d1117;
  --bg-card: #161b22;
  --bg-sidebar: #010409;
  --bg-topbar: #161b22;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --text-sidebar: #8b949e;
  --border: #21262d;
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  font-size: 14px;
  transition: background .3s, color .3s;
}

/* -------- SCROLLBAR -------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
}

.login-bg { position: absolute; inset: 0; pointer-events: none; }

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orb-drift 8s ease-in-out infinite alternate;
}
.login-orb-1 { width: 400px; height: 400px; background: #3b82f6; top: -100px; left: -100px; }
.login-orb-2 { width: 350px; height: 350px; background: #6366f1; bottom: -80px; right: -80px; animation-delay: 2s; }
.login-orb-3 { width: 250px; height: 250px; background: #10b981; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 4s; }

.login-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes orb-drift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.15) translateY(-30px); }
}

.login-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 44px 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: card-in .6s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes card-in {
  from { opacity:0; transform:translateY(40px) scale(0.95); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.login-brand { display: flex; flex-direction: column; }
.brand-main { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 22px; color: #fff; }
.brand-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.login-title { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.login-desc { color: rgba(255,255,255,0.5); font-size: 13px; margin-bottom: 28px; }

.input-group { margin-bottom: 18px; }
.input-group label { display: block; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.input-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color .2s, background .2s;
  outline: none;
}
.input-group input::placeholder { color: rgba(255,255,255,0.3); }
.input-group input:focus { border-color: #3b82f6; background: rgba(59,130,246,0.1); }

.login-error { color: #f87171; font-size: 13px; margin-bottom: 14px; }

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.5); }
.btn-login:active { transform: translateY(0); }

.login-hint { color: rgba(255,255,255,0.35); font-size: 12px; text-align: center; margin-top: 16px; }
.login-hint strong { color: rgba(255,255,255,0.6); }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dash-page {
  display: flex;
  min-height: 100vh;
}

/* -------- SIDEBAR -------- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar.closed { transform: translateX(-100%); }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sb-logo { display: flex; align-items: center; gap: 12px; }
.sb-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 15px; color: #fff;
}
.sb-logo-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; color: #fff; }
.sb-logo-tag { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 1px; }

.sidebar-close { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 18px; cursor: pointer; display: none; }

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

.sb-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-sidebar);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.sb-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sb-link.active { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(99,102,241,0.2)); color: #fff; border: 1px solid rgba(99,102,241,0.3); }
.sb-icon { font-size: 16px; width: 22px; text-align: center; }

.sb-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sb-user-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
}
.sb-user-name { color: #fff; font-weight: 600; font-size: 13px; }
.sb-user-role { color: rgba(255,255,255,0.4); font-size: 11px; }
.sb-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #10b981; margin-top: 2px; }
.dot-green { width: 7px; height: 7px; background: #10b981; border-radius: 50%; }

.sb-storage { padding: 0 20px 14px; }
.sb-storage-label { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.35); margin-bottom: 6px; }
.sb-storage-bar { height: 5px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.sb-storage-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #6366f1); border-radius: 99px; }

.sb-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  color: rgba(255,255,255,0.4);
  text-decoration: none; font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: color .15s;
}
.sb-logout:hover { color: #ef4444; }

/* -------- MAIN WRAP -------- */
.main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left .3s;
}

/* -------- TOPBAR -------- */
.topbar {
  height: 60px;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}

.menu-btn {
  background: none; border: none; font-size: 20px; cursor: pointer;
  color: var(--text-main); display: none;
}

.topbar-search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-main);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 7px 14px;
}
.search-icon { color: var(--text-muted); font-size: 14px; }
.topbar-search input { flex:1; background:none; border:none; outline:none; color:var(--text-main); font-family:'DM Sans',sans-serif; font-size:14px; }
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search kbd { background: var(--border); color: var(--text-muted); padding: 2px 7px; border-radius: 5px; font-size: 11px; font-family: inherit; }

.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.tb-btn {
  background: var(--bg-main); border: 1.5px solid var(--border);
  border-radius: 9px; padding: 7px 10px; cursor: pointer;
  color: var(--text-main); font-size: 15px; position: relative;
  transition: background .15s;
}
.tb-btn:hover { background: var(--border); }

.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: #fff; border-radius: 99px;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px;
}

.tb-user {
  background: var(--bg-main); border: 1.5px solid var(--border);
  border-radius: 9px; padding: 7px 14px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--text-main);
}

/* -------- CONTENT SECTIONS -------- */
.content-section { display: none; padding: 28px 28px 0; }
.content-section.active { display: block; }

/* -------- WELCOME -------- */
.welcome-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.welcome-title { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; color: var(--text-main); }
.welcome-date { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* -------- STAT CARDS -------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  transition: transform .2s, box-shadow .2s;
  animation: fade-up .5s ease both;
}
.stat-card:nth-child(1) { animation-delay: .05s; }
.stat-card:nth-child(2) { animation-delay: .1s; }
.stat-card:nth-child(3) { animation-delay: .15s; }
.stat-card:nth-child(4) { animation-delay: .2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

@keyframes fade-up {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

.stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--text-main); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-trend { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.stat-trend.up { background: rgba(16,185,129,0.12); color: #10b981; }
.stat-trend.down { background: rgba(239,68,68,0.12); color: #ef4444; }

/* -------- SECTION CARD -------- */
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  animation: fade-up .5s ease both;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.card-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--text-main); }
.view-all { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; }
.view-all:hover { text-decoration: underline; }

/* -------- QUICK LINKS -------- */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ql-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s;
  color: #fff;
}
.ql-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); filter: brightness(1.08); }
.ql-icon { font-size: 24px; }
.ql-name { font-weight: 700; font-size: 13px; color: #fff; }
.ql-sub { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 2px; }

.ql-blue   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.ql-green  { background: linear-gradient(135deg, #059669, #047857); }
.ql-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ql-orange { background: linear-gradient(135deg, #d97706, #b45309); }
.ql-teal   { background: linear-gradient(135deg, #0d9488, #0f766e); }
.ql-red    { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.ql-indigo { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.ql-pink   { background: linear-gradient(135deg, #db2777, #be185d); }

/* -------- TWO COL -------- */
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 0; }
.two-col-grid .section-card { margin-bottom: 0; }

/* -------- CLIENTS -------- */
.client-list { display: flex; flex-direction: column; gap: 10px; }
.client-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-main); }
.cl-avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.cl-name { font-weight: 600; font-size: 13px; color: var(--text-main); }
.cl-gstin { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.badge-active { margin-left: auto; background: rgba(16,185,129,0.12); color: #059669; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.badge-inactive { background: rgba(107,114,128,0.12); color: #6b7280; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }

/* -------- TASKS -------- */
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-main); }
.task-check { width: 16px; height: 16px; accent-color: #3b82f6; cursor: pointer; flex-shrink: 0; }
.task-name { font-size: 13px; color: var(--text-main); font-weight: 500; }
.badge-high { margin-left: auto; background: rgba(239,68,68,0.12); color: #ef4444; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px; flex-shrink: 0; }
.badge-medium { margin-left: auto; background: rgba(245,158,11,0.12); color: #f59e0b; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px; flex-shrink: 0; }
.badge-low { margin-left: auto; background: rgba(16,185,129,0.12); color: #10b981; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px; flex-shrink: 0; }

/* -------- FILES -------- */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-main); }
.file-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.file-icon.xlsx { background: rgba(16,185,129,0.15); color: #059669; }
.file-icon.pdf { background: rgba(239,68,68,0.15); color: #ef4444; }
.file-name { font-size: 13px; font-weight: 500; color: var(--text-main); }
.file-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.dl-btn { margin-left: auto; background: none; border: 1.5px solid var(--border); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; color: var(--accent); font-size: 14px; transition: background .15s; }
.dl-btn:hover { background: var(--bg-main); }

/* -------- REMINDERS -------- */
.reminder-list { display: flex; flex-direction: column; gap: 10px; }
.reminder-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--bg-main); }
.rem-title { font-size: 13px; font-weight: 500; color: var(--text-main); }
.rem-date { font-size: 12px; font-weight: 600; color: var(--accent); }
.rem-date.urgent { color: #ef4444; }

/* -------- TOOLS -------- */
.tools-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tool-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: var(--bg-main);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  font-size: 22px;
}
.tool-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--accent); }
.tool-name { font-size: 12px; font-weight: 600; color: var(--text-main); }
.tool-sub { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

/* -------- QUICK STATS -------- */
.qstats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.qstat { text-align: center; padding: 16px 12px; background: var(--bg-main); border-radius: 12px; }
.qstat-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; color: var(--accent); }
.qstat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* -------- STATUS LIST -------- */
.status-list { display: flex; flex-direction: column; gap: 10px; }
.status-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-main); border-radius: 10px; }
.status-label { flex: 1; font-size: 13px; font-weight: 500; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.status-text { font-size: 12px; color: #10b981; font-weight: 500; }

/* -------- NOTES -------- */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-card { padding: 18px; border-radius: 14px; position: relative; }
.note-card.yellow { background: #fef9c3; border: 1.5px solid #fde047; }
.note-card.blue { background: #dbeafe; border: 1.5px solid #93c5fd; }
.note-card.green { background: #dcfce7; border: 1.5px solid #86efac; }
.note-card.pink { background: #fce7f3; border: 1.5px solid #f9a8d4; }
[data-theme="dark"] .note-card.yellow { background: rgba(254,249,195,0.08); }
[data-theme="dark"] .note-card.blue { background: rgba(219,234,254,0.08); }
[data-theme="dark"] .note-card.green { background: rgba(220,252,231,0.08); }
[data-theme="dark"] .note-card.pink { background: rgba(252,231,243,0.08); }
.note-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--text-main); }
.note-body { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.note-date { font-size: 11px; color: var(--text-muted); margin-top: 12px; }

/* -------- CLIENTS TABLE -------- */
.clients-table-wrap { overflow-x: auto; }
.clients-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.clients-table th { padding: 10px 14px; text-align: left; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border); font-size: 12px; }
.clients-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-main); vertical-align: middle; }
.clients-table tr:last-child td { border-bottom: none; }
.clients-table tr:hover td { background: var(--bg-main); }
.cl-avatar-sm { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; margin-right: 8px; vertical-align: middle; }
.link-btn { color: var(--accent); text-decoration: none; font-weight: 500; }

/* -------- BTN SM -------- */
.btn-sm {
  background: var(--bg-main);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-sm:hover { border-color: var(--accent); background: rgba(59,130,246,0.06); }

/* -------- MODAL -------- */
.modal {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal-box {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 28px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  animation: card-in .3s ease both;
}
.modal-box h3 { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }

/* -------- FOOTER -------- */
.dash-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px;
  color: var(--text-muted); font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .quick-links-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .two-col-grid { grid-template-columns: 1fr; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .qstats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: flex; align-items: center; justify-content: center; }
  .main-wrap { margin-left: 0; }
  .menu-btn { display: flex; }
  .topbar { padding: 0 16px; }
  .content-section { padding: 16px 16px 0; }
}

@media (max-width: 540px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick-links-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .login-card { padding: 32px 24px; margin: 16px; }
  .welcome-title { font-size: 20px; }
}
