/* Amblezio modern theme: gradient, glassmorphism, chips, FABs, progress bars */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text-primary: #EEF2FF;
  --text-muted: #C7D2FE;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius-lg: 22px;
  --radius-pill: 999px;
  --brand: #6EA8FE;
  --red: #ff6b6b;
  --orange: #f4a261;
  --purple: #9b59b6;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --green: #22c55e;
  --yellow: #facc15;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-primary);
  background: radial-gradient(1200px 700px at 20% -10%, #1d1b3a 20%, transparent 60%),
              radial-gradient(1000px 600px at 120% 10%, #2b1f52 10%, transparent 60%),
              linear-gradient(160deg, #0b1020, #151b2f 45%, #1d2240 100%);
  background-attachment: fixed;
}

.gradient-bg { /* optional hook for pages still using class on body */ }

/* Glass panels */
.glass, .card, .column, header.bg-dark, .offcanvas {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow);
  color: var(--text-primary);
}

header.bg-dark {
  border-bottom: 1px solid var(--glass-border) !important;
}

.offcanvas {
  color: var(--text-primary);
}

/* Typography tweaks */
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }
p, .text-muted { color: var(--text-muted) !important; }

/* Buttons */
.btn { border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease; color: var(--text-primary); }
.btn:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 12px 24px rgba(0,0,0,.35); }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-outline-light { color: var(--text-primary); border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* Icon-only circular delete buttons */
.btn-icon { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.btn-icon.btn-danger { background: rgba(255, 107, 107, 0.2); border: 1px solid rgba(255, 107, 107, 0.45); color: #ff8c8c; }
.btn-icon.btn-danger:hover { background: rgba(255, 107, 107, 0.3); }

/* Floating Action Button (FAB) */
.fab { position: absolute; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(180deg, #64a7ff, #3b82f6); color: white; border: none; box-shadow: 0 18px 35px rgba(59,130,246,.45);
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.fab:hover { transform: translateY(-3px); box-shadow: 0 24px 45px rgba(59,130,246,.6); }

/* Lists as chips/pills */
.chip { background: rgba(255,255,255,0.12); border: 1px solid var(--glass-border); border-radius: 16px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); }
.chip .icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.08); }
.chip.purple { box-shadow: inset 0 0 0 1px rgba(155,89,182,.35); }
.chip.green { box-shadow: inset 0 0 0 1px rgba(34,197,94,.35); }
.chip.blue { box-shadow: inset 0 0 0 1px rgba(59,130,246,.35); }

/* Checkbox → pill task */
.tasks li, .habits li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.12); border: 1px solid var(--glass-border); margin-bottom: 10px; color: var(--text-primary); }
.tasks li span, .habits li span { color: var(--text-primary); }
.tasks .checkbox, .habits .checkbox { appearance: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(255,255,255,.35); background: transparent; position: relative; transition: all .2s ease; margin-right: 10px; }
.tasks .checkbox:checked, .habits .checkbox:checked { background: rgba(34,197,94,.25); border-color: #22c55e; }
.tasks .checkbox:checked::after, .habits .checkbox:checked::after { content: '\2713'; position: absolute; color: #22c55e; font-weight: 700; left: 4px; top: -2px; }
.tasks li.completed { opacity: .65; text-decoration: line-through; }

/* Progress bars for stats */
.stat-bar { height: 10px; border-radius: 999px; background: rgba(0,0,0,0.35); overflow: hidden; border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.stat-bar > span { display: block; height: 100%; border-radius: inherit; width: calc(var(--p, 0) * 1%); }
.stat-red { background: linear-gradient(90deg, #ff6b6b, #ff8a8a); }
.stat-orange { background: linear-gradient(90deg, #f4a261, #f7b267); }
.stat-purple { background: linear-gradient(90deg, #9b59b6, #b084d8); }
.stat-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-teal { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.stat-green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.stat-yellow { background: linear-gradient(90deg, #facc15, #fde047); }

/* Avatar circle */
.avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; box-shadow: inset 0 0 0 1px var(--glass-border); }

/* Utility */
.rounded-xl { border-radius: var(--radius-lg) !important; }
.glow { box-shadow: 0 0 0 2px rgba(110,168,254,.25), 0 0 30px rgba(110,168,254,.25); }


