/* ============================================================
   DayCare+ / AnakHebat.com — Reusable Components
   ============================================================ */

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
}

.btn-xs {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-pink {
  background: var(--accent-pink);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(233,30,99,0.25);
}
.btn-pink:hover {
  background: var(--accent-pink-dark);
  color: var(--white);
  box-shadow: var(--shadow-pink);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}
.btn-success:hover {
  background: var(--success-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--warning);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--text-heading);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1DA851;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-lg);
}

.btn-icon.lg {
  width: 48px;
  height: 48px;
}

.btn-block {
  width: 100%;
}

/* ================================================================
   CARDS
   ================================================================ */
.card-dc {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  padding: var(--space-6);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card-dc:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.card-dc.no-hover:hover {
  box-shadow: var(--shadow-card);
  transform: none;
}

.card-dc .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.card-icon.blue   { background: var(--primary-50); color: var(--primary); }
.card-icon.pink   { background: var(--accent-pink-50); color: var(--accent-pink); }
.card-icon.yellow { background: var(--accent-yellow-50); color: var(--accent-yellow-dark); }
.card-icon.green  { background: var(--success-50); color: var(--success); }
.card-icon.orange { background: var(--accent-orange-50); color: var(--accent-orange); }

.card-icon.lg {
  width: 72px;
  height: 72px;
  font-size: var(--text-3xl);
  border-radius: var(--radius-2xl);
}

.card-dc .card-title {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.card-dc .card-text {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

/* Feature Card (USP) */
.card-feature {
  text-align: center;
  padding: var(--space-8);
}

.card-feature .card-icon {
  margin: 0 auto var(--space-5);
}

/* Stat Card */
.card-stat {
  text-align: center;
  padding: var(--space-6);
  border: none;
}

.card-stat .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.card-stat .stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--font-medium);
}

/* Program Card */
.card-program {
  overflow: hidden;
  padding: 0;
}

.card-program .program-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-program .program-body {
  padding: var(--space-6);
}

.card-program .program-badge {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.card-program .program-features {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card-program .program-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.card-program .program-features li i {
  color: var(--success);
  font-size: var(--text-sm);
}

/* Pricing Card */
.card-pricing {
  text-align: center;
  padding: var(--space-8);
  position: relative;
}

.card-pricing.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-card-hover);
}

.card-pricing.popular::before {
  content: 'Populer';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  font-family: var(--font-heading);
}

.card-pricing .price {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--text-heading);
  margin: var(--space-4) 0;
}

.card-pricing .price .currency {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  vertical-align: top;
}

.card-pricing .price .period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--font-normal);
}

.card-pricing .pricing-features {
  text-align: left;
  margin: var(--space-6) 0;
}

.card-pricing .pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

.card-pricing .pricing-features li:last-child {
  border-bottom: none;
}

.card-pricing .pricing-features li i {
  font-size: var(--text-base);
}

.card-pricing .pricing-features li i.bi-check-circle-fill {
  color: var(--success);
}

.card-pricing .pricing-features li i.bi-x-circle {
  color: var(--gray-300);
}

/* KPI Card */
.card-kpi {
  padding: var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.card-kpi .kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.card-kpi .kpi-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  color: var(--text-heading);
  line-height: 1;
}

.card-kpi .kpi-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.card-kpi .kpi-trend {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-top: var(--space-1);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.kpi-trend.up   { color: var(--success); }
.kpi-trend.down { color: var(--error); }

/* Testimonial Card */
.card-testimonial {
  padding: var(--space-6);
}

.card-testimonial .testimonial-quote {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: var(--leading-relaxed);
  font-style: italic;
  margin-bottom: var(--space-5);
  position: relative;
  padding-left: var(--space-5);
  border-left: 3px solid var(--accent-yellow);
}

.card-testimonial .testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card-testimonial .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: var(--font-bold);
  font-family: var(--font-heading);
}

.card-testimonial .author-name {
  font-weight: var(--font-semibold);
  color: var(--text-heading);
  font-size: var(--text-sm);
}

.card-testimonial .author-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar-dc {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-base);
}

.navbar-dc.scrolled {
  border-bottom-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.navbar-dc .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
}

.navbar-dc .nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.navbar-dc .nav-logo img {
  height: 44px;
  width: auto;
}

.navbar-dc .nav-logo span {
  font-family: var(--font-heading);
  font-weight: var(--font-extrabold);
  font-size: var(--text-xl);
  color: var(--text-heading);
}

.navbar-dc .nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar-dc .nav-links a {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-body);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.navbar-dc .nav-links a:hover,
.navbar-dc .nav-links a.active {
  color: var(--primary);
  background: var(--primary-50);
}

.navbar-dc .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition-fast);
}

@media (max-width: 991px) {
  .navbar-dc .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }

  .navbar-dc .nav-links.open {
    display: flex;
  }

  .navbar-dc .nav-links a {
    width: 100%;
    padding: var(--space-3) var(--space-4);
  }

  .nav-toggle {
    display: flex;
  }

  .navbar-dc .nav-actions .btn {
    display: none;
  }
}

/* ================================================================
   SIDEBAR (Portal)
   ================================================================ */
.portal-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: var(--navbar-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: var(--space-4) 0;
  z-index: var(--z-sticky);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sidebar);
}

.sidebar .sidebar-section {
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-2);
}

.sidebar .sidebar-label {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-1);
}

.sidebar .sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin: 0 var(--space-2);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-body);
  transition: var(--transition-fast);
  text-decoration: none;
}

.sidebar .sidebar-link i {
  font-size: var(--text-lg);
  width: 22px;
  text-align: center;
}

.sidebar .sidebar-link:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.sidebar .sidebar-link.active {
  background: var(--primary-50);
  color: var(--primary);
  font-weight: var(--font-semibold);
}

.sidebar .sidebar-link .link-badge {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-pink);
  color: var(--white);
}

.portal-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: var(--space-8);
  min-height: calc(100vh - var(--navbar-height));
  background: var(--bg-body);
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .portal-content {
    margin-left: 0;
    padding: var(--space-4);
  }
}

/* Portal page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.page-header h1 {
  font-size: var(--text-2xl);
}

.page-header .breadcrumb-dc {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.page-header .breadcrumb-dc a {
  color: var(--text-muted);
}

.page-header .breadcrumb-dc a:hover {
  color: var(--primary);
}

.page-header .breadcrumb-dc .separator {
  color: var(--gray-300);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--gray-900);
  color: var(--text-on-dark);
  padding: var(--space-16) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer .footer-brand img {
  height: 48px;
  margin-bottom: var(--space-4);
}

.footer .footer-brand p {
  color: var(--gray-400);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: 320px;
}

.footer .footer-heading {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer .footer-links a {
  color: var(--gray-400);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.footer .footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer .footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer .footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: var(--text-lg);
  transition: var(--transition-fast);
}

.footer .footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: var(--space-10);
  padding: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ================================================================
   FORMS
   ================================================================ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--text-heading);
  background: var(--white);
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}

.form-input.error,
.form-select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-50);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--error);
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-check label {
  font-size: var(--text-sm);
  color: var(--text-body);
  cursor: pointer;
}

/* File upload */
.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--gray-50);
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.file-upload i {
  font-size: var(--text-3xl);
  color: var(--gray-400);
  margin-bottom: var(--space-2);
}

.file-upload p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ================================================================
   BADGES & STATUS PILLS
   ================================================================ */
.badge-dc {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.badge-dc.blue     { background: var(--primary-50); color: var(--primary); }
.badge-dc.pink     { background: var(--accent-pink-50); color: var(--accent-pink); }
.badge-dc.yellow   { background: var(--accent-yellow-50); color: var(--accent-yellow-dark); }
.badge-dc.green    { background: var(--success-50); color: var(--success); }
.badge-dc.red      { background: var(--error-50); color: var(--error); }
.badge-dc.orange   { background: var(--warning-50); color: var(--warning); }
.badge-dc.gray     { background: var(--gray-100); color: var(--gray-600); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active    { background: var(--success); }
.status-dot.pending   { background: var(--warning); }
.status-dot.inactive  { background: var(--gray-400); }
.status-dot.error     { background: var(--error); }

/* ================================================================
   TABLES
   ================================================================ */
.table-dc {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}

.table-dc thead th {
  padding: var(--space-3) var(--space-4);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
}

.table-dc tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  vertical-align: middle;
}

.table-dc tbody tr:hover {
  background: var(--gray-50);
}

.table-dc tbody tr:last-child td {
  border-bottom: none;
}

/* ================================================================
   TABS
   ================================================================ */
.tabs-dc {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--border-color);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}

.tabs-dc .tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition-fast);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tabs-dc .tab:hover {
  color: var(--primary);
}

.tabs-dc .tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ================================================================
   ACCORDION
   ================================================================ */
.accordion-dc .accordion-item {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xs);
  margin-bottom: var(--space-3);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.accordion-dc .accordion-header {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  color: var(--text-heading);
  transition: var(--transition-fast);
  gap: var(--space-4);
}

.accordion-dc .accordion-header:hover {
  color: var(--primary);
}

.accordion-dc .accordion-header i {
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.accordion-dc .accordion-item.open .accordion-header i {
  transform: rotate(180deg);
}

.accordion-dc .accordion-body {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-body);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  display: none;
}

.accordion-dc .accordion-item.open .accordion-body {
  display: block;
}

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.5);
  z-index: var(--z-modal-bg);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-dc {
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn var(--duration-normal) var(--ease-out);
}

.modal-dc .modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-dc .modal-header h3 {
  font-size: var(--text-xl);
  margin: 0;
}

.modal-dc .modal-body {
  padding: var(--space-6);
}

.modal-dc .modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* ================================================================
   WIZARD / STEPPER
   ================================================================ */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
  gap: 0;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.wizard-step .step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  background: var(--gray-200);
  color: var(--gray-500);
  transition: var(--transition-base);
  flex-shrink: 0;
}

.wizard-step .step-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-muted);
}

.wizard-step.active .step-circle {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.wizard-step.active .step-label {
  color: var(--primary);
  font-weight: var(--font-semibold);
}

.wizard-step.completed .step-circle {
  background: var(--success);
  color: var(--white);
}

.wizard-step.completed .step-label {
  color: var(--success);
}

.wizard-connector {
  width: 48px;
  height: 2px;
  background: var(--gray-200);
  margin: 0 var(--space-2);
  flex-shrink: 0;
}

.wizard-connector.active {
  background: var(--primary);
}

.wizard-connector.completed {
  background: var(--success);
}

@media (max-width: 768px) {
  .wizard-step .step-label { display: none; }
  .wizard-connector { width: 24px; }
}

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
}

.timeline-item .timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 8px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  z-index: 1;
}

.timeline-item .timeline-dot.green { border-color: var(--success); }
.timeline-item .timeline-dot.pink  { border-color: var(--accent-pink); }
.timeline-item .timeline-dot.yellow { border-color: var(--accent-yellow); }

.timeline-item .timeline-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-1);
}

.timeline-item .timeline-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}

/* ================================================================
   KANBAN
   ================================================================ */
.kanban-board {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
}

.kanban-column {
  flex: 0 0 280px;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}

.kanban-column .column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-color);
}

.kanban-column .column-title {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  color: var(--text-heading);
}

.kanban-column .column-count {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  background: var(--gray-200);
  color: var(--gray-600);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.kanban-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  cursor: grab;
  transition: var(--transition-fast);
}

.kanban-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kanban-card .card-child-name {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.kanban-card .card-program-name {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.kanban-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ================================================================
   CALENDAR
   ================================================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.calendar-grid .day-header {
  background: var(--gray-50);
  padding: var(--space-3);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--text-muted);
}

.calendar-grid .day-cell {
  background: var(--white);
  padding: var(--space-3);
  min-height: 80px;
  font-size: var(--text-sm);
}

.calendar-grid .day-cell.other-month {
  background: var(--gray-50);
  color: var(--gray-300);
}

.calendar-grid .day-cell.today {
  background: var(--primary-50);
}

.calendar-grid .day-number {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.calendar-grid .day-event {
  font-size: var(--text-xs);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-event.present  { background: var(--success-50); color: var(--success-dark); }
.day-event.absent   { background: var(--error-50); color: var(--error); }
.day-event.holiday  { background: var(--accent-yellow-50); color: var(--accent-yellow-dark); }

/* ================================================================
   AVATAR
   ================================================================ */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-sm  { width: 32px; height: 32px; }
.avatar-md  { width: 40px; height: 40px; }
.avatar-lg  { width: 56px; height: 56px; }
.avatar-xl  { width: 72px; height: 72px; }
.avatar-2xl { width: 96px; height: 96px; }

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  color: var(--white);
}

/* ================================================================
   PROGRESS
   ================================================================ */
.progress-bar-dc {
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-dc .progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary);
  transition: width var(--duration-slow) var(--ease-out);
}

.progress-fill.green  { background: var(--success); }
.progress-fill.pink   { background: var(--accent-pink); }
.progress-fill.yellow { background: var(--accent-yellow); }
.progress-fill.orange { background: var(--accent-orange); }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.empty-state i {
  font-size: 48px;
  color: var(--gray-300);
  margin-bottom: var(--space-4);
}

.empty-state h4 {
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  max-width: 360px;
  margin: 0 auto;
}

/* ================================================================
   TOAST
   ================================================================ */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + var(--space-4));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  animation: slideInRight var(--duration-normal) var(--ease-out);
  min-width: 300px;
}

.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination-dc {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  justify-content: center;
}

.pagination-dc .page-item {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  background: none;
}

.pagination-dc .page-item:hover {
  background: var(--gray-100);
}

.pagination-dc .page-item.active {
  background: var(--primary);
  color: var(--white);
}

/* ================================================================
   SEARCH / FILTER BAR
   ================================================================ */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-input-wrapper i {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrapper .form-input {
  padding-left: var(--space-10);
}

/* ================================================================
   CHILD SELECTOR
   ================================================================ */
.child-selector {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  overflow-x: auto;
}

.child-selector .child-tab {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  border: none;
  background: transparent;
}

.child-selector .child-tab:hover {
  background: var(--white);
}

.child-selector .child-tab.active {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.child-selector .child-tab .child-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--primary);
}

.child-selector .child-tab .child-info {
  text-align: left;
}

.child-selector .child-tab .child-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-heading);
}

.child-selector .child-tab .child-age {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ================================================================
   NOTIFICATION ITEM
   ================================================================ */
.notification-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.notification-item:hover {
  background: var(--gray-50);
}

.notification-item.unread {
  background: var(--primary-50);
}

.notification-item .notif-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-item .notif-text {
  flex: 1;
}

.notification-item .notif-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-heading);
  margin-bottom: var(--space-1);
}

.notification-item .notif-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.notification-item .notif-time {
  font-size: var(--text-xs);
  color: var(--text-light);
}
