/* ============================================================
   30. POLESAN DASBOR 1.30.0
   - Emoji diganti ikon garis (judul kartu, keadaan kosong, status akses)
   - Keadaan kosong ringkas, grafik kosong, Action Center senada warna merek
   - Beranda orang tua dengan kartu sambutan, statistik 2 kolom di HP
   Warna mengikuti warna merek (--primary, --aksen).
   ============================================================ */

/* Ikon sebaris di judul, tombol, dan baris keterangan */
.ik-baris { width: 1.1em; height: 1.1em; vertical-align: -0.18em; margin-right: 4px; flex: 0 0 auto; }
.panel-header .ik-baris { width: 18px; height: 18px; color: var(--primary); margin-right: 8px; vertical-align: -3px; }
.panel-header-flex > span:first-child { display: inline-flex; align-items: center; min-width: 0; }
.panel-header-flex .link-plain { margin-left: auto; }
.reg-role-opt .ik { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.hero-badge .ik { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.hero-badge-peringatan { background: rgba(245, 158, 11, 0.22); color: #fef3c7; border: 1px solid rgba(245, 158, 11, 0.4); }
.hero-badge-ok { background: rgba(16, 185, 129, 0.2); color: #d1fae5; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Keadaan kosong */
.empty-ikon { margin-bottom: 8px; }
.empty-ikon .ik { width: 34px; height: 34px; color: var(--primary-mid, var(--primary)); opacity: 0.85; }
.dash-empty { padding: 18px 12px; }
.dash-empty .ik { display: block; width: 26px; height: 26px; margin: 0 auto 8px; color: var(--primary-mid, var(--primary)); opacity: 0.8; }
.empty-state-saas .empty-icon .ik { width: 40px; height: 40px; color: var(--primary-mid, var(--primary)); }
.akses-ikon .ik { width: 44px; height: 44px; color: var(--primary); }
.hasil-ikon { margin-bottom: 10px; }
.hasil-ikon .ik { width: 56px; height: 56px; color: #10b981; }

/* Blok merek di menu samping: nama bimbel dan peran satu ukuran */
.sidebar-brand h3 { font-size: 15px; }
.sidebar-brand h3 span { font-size: inherit; font-weight: inherit; color: inherit; }

/* Admin: Action Center (Perlu Perhatian Hari Ini) */
.ac-panel { background: var(--primary-light); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px 20px; margin: 20px 0 24px; }
.ac-kepala { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ac-kepala h3 { margin: 0; padding: 0; border: none; font-size: 16px; font-weight: 700; color: var(--primary-deep, var(--primary)); }
.ac-ikon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #ffffff; color: var(--aksen, #d97706); flex: 0 0 auto; }
.ac-ikon .ik { width: 18px; height: 18px; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ac-kartu { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.ac-judul { font-size: 12px; color: var(--text-muted, #475569); font-weight: 600; }
.ac-angka { font-size: 20px; font-weight: 800; margin-top: 4px; }
.ac-bahaya { color: #dc2626; } .ac-peringatan { color: #d97706; } .ac-info { color: var(--primary); } .ac-aman { color: #0f766e; }
.ac-ket { font-size: 11px; color: var(--text-main); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Grafik tanpa data */
.chart-kosong { height: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px; color: var(--text-muted, #64748b); font-size: 13px; font-weight: 600; }
.chart-kosong .ik { width: 30px; height: 30px; color: var(--primary-mid, var(--primary)); opacity: 0.8; }

/* Beranda orang tua: kartu dengan ikon + info + baris pembaruan */
.ortu-kartu-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ortu-kartu { flex-direction: row; align-items: center; gap: 14px; border-radius: 16px; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.ortu-kartu:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ortu-kartu .stat-icon { width: 48px; height: 48px; }
.ortu-kartu-isi { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.ortu-info { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 14px; border-radius: 12px; background: var(--primary-light); color: var(--primary-deep, var(--primary)); font-size: 13px; line-height: 1.5; }
.ortu-info .ik { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.ortu-segar .link-plain .ik { width: 13px; height: 13px; vertical-align: -2px; }

/* HP: statistik 2 kolom (bukan satu kartu per baris), judul kartu tidak berebut ruang */
@media (max-width: 560px) {
    .stats-grid-saas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .stat-card-saas { padding: 14px; gap: 10px; }
    .stat-card-saas .stat-icon { width: 40px; height: 40px; border-radius: 12px; }
    .stat-card-saas .stat-icon svg, .stat-card-saas .stat-icon .ik { width: 22px !important; height: 22px !important; }
    .stat-info p { font-size: 11.5px; }
    .stat-info h3 { font-size: 18px; }
    .panel-header { font-size: 14px; }
    .ac-panel { padding: 14px; }
    .ortu-kartu-grid { grid-template-columns: 1fr; }
}

/* Mode gelap */
body.dark-mode .ac-kartu, body.dark-mode .ac-ikon { background: var(--bg-surface, #1e293b); }
body.dark-mode .ac-panel { background: rgba(255, 255, 255, 0.04); }
body.dark-mode .ac-ket { color: #cbd5e1; }
@media (prefers-reduced-motion: reduce) { .ortu-kartu, .ortu-kartu:hover { transition: none; transform: none; } }

/* 1.31.0: ikon garis menggantikan emoji di tombol, badge, avatar, toast, dan peringkat */
.dropdown-menu button .ik, .jd-btn .ik, .btn-primary .ik, .btn-success .ik, .btn-warning .ik, .btn-danger .ik,
.badge-saas .ik, .badge-kelas-card .ik, .dash-hero-actions .ik, .item-card-saas .card-subtitle-saas .ik { width: 1.1em; height: 1.1em; margin-right: 5px; vertical-align: -0.18em; }
.btn-saas .ik, .wa-link-btn .ik { width: 1.15em; height: 1.15em; }
.avatar-saas .ik { width: 22px; height: 22px; }
.toast-ik { display: inline-flex; flex: none; }
.toast-ik .ik { width: 20px; height: 20px; }
.toast-success .toast-ik { color: #34d399; }
.toast-error .toast-ik { color: #f87171; }
.toast-warning .toast-ik { color: #fbbf24; }
.rank-badge .ik { width: 22px; height: 22px; }
.rank-1 .ik { color: #d97706; }
.rank-2 .ik { color: #64748b; }
.rank-3 .ik { color: #c2410c; }
.pilih-ikon-kartu .ik { vertical-align: -0.18em; }
.feature-icon .ik, .akses-ikon .ik { margin-right: 0; }
