/* ============================================================
   CARE CITY CHURCH — Global Styles
   Singapore · Jakarta · Surabaya
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --purple:       #6B21A8;
  --purple-mid:   #9333EA;
  --purple-light: #A855F7;
  --purple-pale:  #F3E8FF;
  --teal:         #0D9488;
  --teal-light:   #2DD4BF;
  --teal-pale:    #CCFBF1;
  --orange:       #EA580C;
  --orange-light: #FB923C;
  --orange-pale:  #FFEDD5;
  --dark:         #1C0A2E;
  --dark2:        #2D1B4E;
  --text:         #1F2937;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --bg:           #F8F5FF;
  --white:        #FFFFFF;
  --success:      #059669;
  --danger:       #DC2626;
  --card-shadow:  0 2px 16px rgba(107,33,168,0.10);
  --radius:       14px;
  --radius-sm:    8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Mobile wrapper */
.app-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 70px;
}

/* ---- TOPBAR ---- */
.topbar {
  background: var(--dark);
  color: white;
  padding: 14px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-logo .logo-icon {
  width: 32px;
  height: 32px;
}
.topbar-logo span { color: var(--teal-light); }
.topbar-icons { display: flex; gap: 14px; }
.topbar-icons a { color: rgba(255,255,255,0.75); font-size: 20px; text-decoration: none; }

.location-bar {
  background: var(--purple);
  color: rgba(255,255,255,0.9);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  max-width: 100%;
  background: var(--dark);
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 200;
}
.nav-item {
  flex: 1;
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-item.active,
.nav-item:hover { color: var(--teal-light); }
.nav-item i { font-size: 22px; }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card-sm { padding: 12px 14px; }

/* ---- SECTION TITLE ---- */
.section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0 16px;
  margin: 18px 0 10px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--purple); color: white; }
.btn-teal    { background: var(--teal);   color: white; }
.btn-orange  { background: var(--orange); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--purple); color: var(--purple); }
.btn-block   { width: 100%; display: flex; }
.btn:hover   { opacity: 0.88; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 14px; }
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-bottom: 5px;
  display: block;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}
select.form-control { appearance: none; cursor: pointer; }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-purple { background: var(--purple-pale); color: var(--purple); }
.badge-teal   { background: var(--teal-pale);   color: var(--teal);   }
.badge-orange { background: var(--orange-pale);  color: var(--orange); }
.badge-red    { background: #FEE2E2; color: #991B1B; }
.badge-green  { background: #D1FAE5; color: #065F46; }

/* ---- ALERTS ---- */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 12px;
}
.alert-success { background: #D1FAE5; color: #065F46; }
.alert-danger  { background: #FEE2E2; color: #991B1B; }
.alert-info    { background: var(--purple-pale); color: var(--purple); }

/* ---- DIVIDER ---- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* ---- AVATAR ---- */
.avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg  { width: 80px; height: 80px; font-size: 28px; }
.avatar-md  { width: 48px; height: 48px; font-size: 18px; }
.avatar-sm  { width: 36px; height: 36px; font-size: 14px; }

/* ---- LIST ROW ---- */
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }

/* ---- HERO BANNER ---- */
.hero-banner {
  margin: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #0f4c40 100%);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(45,212,191,0.12);
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -30px; left: 10px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(234,88,12,0.10);
}

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-purple { color: var(--purple); }
.text-teal   { color: var(--teal); }
.text-orange { color: var(--orange); }
.fw-700      { font-weight: 700; }
.fw-600      { font-weight: 600; }
.fs-12       { font-size: 12px; }
.fs-13       { font-size: 13px; }
.fs-14       { font-size: 14px; }
.mt-8        { margin-top: 8px; }
.mt-12       { margin-top: 12px; }
.px-16       { padding-left: 16px; padding-right: 16px; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.flex-1      { flex: 1; }

/* ---- LIVE dot ---- */
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink-live 1.2s infinite;
  display: inline-block;
}
@keyframes blink-live {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* ---- ATTENDANCE dots ---- */
.att-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.att-dot.hadir { background: var(--teal-pale); color: var(--teal); }
.att-dot.miss  { background: #FEE2E2; color: #991B1B; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(107,33,168,0.2); border-radius: 4px; }
