/* ============================================================================
   ibadah.css — Komponen Daily Journey (implementasi-dan-referensi-fitur.md
   §4 My Ibadah, §5 Khatam, §13 Islamic Journey mini).
   Warna mengikuti token tema (var --c-*) sehingga semua preset warna cocok.
   ============================================================================ */

/* ---------- Progress bar umum ---------- */
.ib-progress {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--c-primary, #087F5B) 12%, transparent);
}
.ib-bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--c-primary, #087F5B), var(--c-accent, #F7A333));
  transition: width .35s ease;
}

/* ---------- Checkbox shalat (§4: ● ● ● ○ ○) ---------- */
.ib-prayers { display: flex; gap: 8px; flex-wrap: wrap; }
.ib-prayer {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--c-border, #dbe7e1); background: transparent;
  color: var(--c-text, #17251f); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.ib-prayer .ib-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--c-muted, #8a9a92); flex: none;
}
.ib-prayer.done {
  background: color-mix(in srgb, var(--c-primary, #087F5B) 14%, transparent);
  border-color: var(--c-primary, #087F5B); font-weight: 600;
}
.ib-prayer.done .ib-dot { background: var(--c-primary, #087F5B); border-color: var(--c-primary, #087F5B); }

/* ---------- Slider tilawah ---------- */
.ib-slider { width: 100%; accent-color: var(--c-primary, #087F5B); }

/* ---------- Mini counter (dzikir / sedekah) ---------- */
.ib-mini {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--c-border, #dbe7e1); border-radius: 14px; padding: 8px 12px;
}

/* ---------- Quick actions (grid ikon besar) ---------- */
.ib-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Tombol aksi cepat: ikon emoji dalam chip emas di ATAS, label tebal di
   bawah — dua elemen terpisah (.ico / .lbl) agar styling tidak salah sasaran
   (dulu span:first-child mengenai LABEL, bukan emoji → tampilan berantakan). */
.ib-qa {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-width: 0; overflow: hidden;
  background: linear-gradient(160deg, var(--c-primary-soft, rgba(8, 127, 91, 0.08)), var(--c-surface, #fff));
  border: 1.5px solid color-mix(in srgb, var(--c-primary, #087F5B) 35%, var(--c-border, #dbe7e1));
  border-radius: 16px; padding: 14px 6px; text-decoration: none; color: var(--c-text, #17251f);
  box-shadow: 0 2px 6px -2px rgba(11, 74, 58, 0.14);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ib-qa:hover { border-color: var(--c-primary, #087F5B); transform: translateY(-2px); box-shadow: 0 6px 14px -4px rgba(11, 74, 58, 0.22); }
.ib-qa:active { transform: translateY(0) scale(.97); }
/* Kotak ikon: chip emas bulat, emoji di dalamnya besar & terpusat */
.ib-qa .ico {
  font-size: 22px; line-height: 1;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10));
  border: 1px solid rgba(212, 175, 55, 0.45); border-radius: 14px;
}
/* Label: satu baris, teks tidak turun dua baris di tombol sempit */
.ib-qa .lbl {
  font-size: 12.5px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ---------- Grafik 7 hari (§13) ---------- */
.ib-week { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
.ib-day {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 5px; height: 100%;
}
.ib-col {
  width: 100%; max-width: 26px; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--c-primary, #087F5B), color-mix(in srgb, var(--c-primary, #087F5B) 45%, transparent));
  min-height: 3px;
}
.ib-day span { font-size: 11px; color: var(--c-muted, #8a9a92); }
