/* =====================================================================
   ILC THEME — DARK MODE (Electric Blue)
   FINAL FULL MERGED • CHILD THEME style.css
   Single-line • Newline per class • Conflict-safe
   ===================================================================== */

/* ====================== ROOT & VARIABLES ====================== */
:root {
  --ilc-profil-electric-soft: #1d4ed8;
  --bg-page: #0b1220;
  --bg-surface: rgba(10, 14, 25, 0.85);
  --bg-elev: #071025;
  --text-primary: #e6f0ff;
  --text-muted: #9aa9bf;
  --muted-2: #7f8fa3;
  --accent: #0ea5ff;
  --accent-strong: #2563eb;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #facc15;
  --info: #0284c7;
  --card-border: rgba(255, 255, 255, 0.04);
  --glass-shadow: 0 8px 30px rgba(3, 7, 18, 0.6);
  --glass-shadow-soft: 0 6px 20px rgba(3, 7, 18, 0.45);
  --glass-outline: rgba(14, 165, 255, 0.08);
  --progress-gradient: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

/* ====================== ASTRA OVERRIDE ====================== */
header#masthead,
.site-header,
.ast-desktop-header,
.ast-mobile-header,
.site-primary-header-wrap,
.ast-main-header-wrap {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.site-content,
.ast-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.site-footer,
.ast-footer-wrapper,
.ast-builder-footer-wrap,
.ast-builder-footer-grid-row,
.ast-footer-section {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}

p {
    margin-bottom:8px !important;
}

/* ====================== DASHBOARD LAYOUT ====================== */
.ilc-wrap {
  display: flex;
  margin-top: 60px;
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ilc-main {
  flex: 1;
  margin-left: 0;
  padding: 24px 28px;
  background: transparent;
}

.ilc-main-guru {
  flex: 1;
  margin-left: 0;
  padding: 40px 58px;
  background: transparent;
}

.ilc-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ilc-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ====================== SIDEBAR ====================== */
.ilc-sidebar {
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px;
  background: linear-gradient(180deg, rgba(8, 13, 25, .9), rgba(6, 9, 18, .95));
  border-right: 1px solid var(--card-border);
  box-shadow: var(--glass-shadow-soft);
  z-index: 999;
}

.ilc-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.ilc-user img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.ilc-user-name {
  font-size: 15px;
  font-weight: 600;
}

.ilc-role {
  font-size: 12px;
  color: var(--text-muted);
}

.ilc-btn.ilc-btn-sm.ilc-btn-warning.ilc-btn-khusus-admin {
  color: #000;
}

.ilc-btn.ilc-btn-sm.ilc-btn-warning.ilc-btn-khusus-admin:hover {
  color: #facc15;
}

/* ====================== MENU ====================== */
.ilc-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.ilc-menu a {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-2);
}

.ilc-menu a:hover {
  background: rgba(14, 165, 255, .06);
  color: var(--text-primary);
}

.ilc-menu .is-active {
  background: linear-gradient(90deg, rgba(14, 165, 255, .14), rgba(37, 99, 235, .08));
  color: var(--text-primary);
}

/* ====================== BADGE ====================== */
.ilc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, .02);
}

.ilc-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.ilc-badge-aktif {
  background: rgba(34, 197, 94, .12);
  color: var(--success);
}

.ilc-badge-aktif .ilc-badge-dot {
  background: var(--success);
}

.ilc-badge-lulus {
  background: rgba(37, 99, 235, .08);
  color: var(--accent-strong);
}

.ilc-badge-lulus .ilc-badge-dot {
  background: var(--accent-strong);
}

.ilc-badge-berhenti {
  background: rgba(239, 68, 68, .06);
  color: var(--danger);
}

.ilc-badge-berhenti .ilc-badge-dot {
  background: var(--danger);
}

.ilc-badge-netral {
  background: rgba(255, 255, 255, .02);
  color: var(--text-muted);
}

/* Payment Status Badges */
.ilc-badge-pending {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ilc-badge-approved {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.ilc-badge-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* ====================== CARD ====================== */
.ilc-card {
  max-width: 1450px;
  background: #020617;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .35);
  padding: 22px;
  margin-bottom: 0;
  color: #e5e7eb;
}

.ilc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ilc-cards .ilc-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-shadow);
  padding: 16px;
  border-radius: 12px;
}

.ilc-card-header {
  margin-bottom: 16px;
}

.ilc-card-header-with-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.ilc-card-title {
  font-size: 18px;
  color: #f1f5f9;
  margin: 0;
}

.ilc-card-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ====================== BUTTON (DEDUPE SAFE) ====================== */
.ilc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ilc-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.ilc-btn-xs {
  padding: 4px 10px;
  font-size: 11px;
}

.ilc-btn-primary,
.ilc-btn.ilc-btn-primary {
  background: #2563eb;
  color: #fff;
  height: 40px;
}

.ilc-btn-primary:hover,
.ilc-btn.ilc-btn-primary:hover {
  background: #1d4ed8;
}

.ilc-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  color: #cbd5e1;
}

.ilc-btn-ghost:hover {
  background: rgba(255, 255, 255, .05);
  color: #0ea5ff;
}

.ilc-btn-info {
  background: #0284c7;
  color: #fff;
}

.ilc-btn-info:hover {
  background: #0369a1;
}

.ilc-btn-danger {
  background: #dc2626;
  color: #fff;
}

.ilc-btn-danger:hover {
  background: #b91c1c;
}

.ilc-btn-warning {
  background: #facc15;
  color: #1e293b;
}

.ilc-btn-warning:hover {
  background: #eab308;
}

/* ====================== TABLE ====================== */
.ilc-table-wrapper {
  overflow-x: auto;
}

.ilc-table {
  width: 100%;
  border-collapse: collapse;
  background: #0b1221;
  color: #e2e8f0;
}

.ilc-table th,
.ilc-table td {
  padding: 10px;
  font-size: 13px;
}

.ilc-table th {
  background: rgba(255, 255, 255, .05);
  color: #cbd5e1;
  text-align: left;
}

.ilc-table tr {
  border-top: 1px solid rgba(255, 255, 255, 1);
}

.ilc-admin-table {
  background: transparent;
}

.ilc-table-dark {
  background: transparent;
}

.ilc-admin-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .01), rgba(255, 255, 255, .005));
  box-shadow: 0 12px 30px rgba(3, 7, 18, .6);
  border: 1px solid var(--card-border);
}

/* ====================== FILTER & PAGINATION ====================== */
.ilc-admin-filters {
  margin-bottom: 14px;
}

.ilc-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px 14px;
  align-items: flex-end;
}

.ilc-filter-group label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.ilc-filter-group select,
.ilc-filter-group input[type="text"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .04);
  padding: 6px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, .01);
  color: var(--text-primary);
}

.ilc-filter-actions {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  justify-content: flex-end;
}

.ilc-pagination {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  justify-content: flex-end;
}

.ilc-page,
.ilc-page-link {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  background: #1e293b;
  color: #cbd5e1;
}

.ilc-page.active,
.ilc-page-link.current {
  background: #3b82f6;
  color: #fff;
}

/* ====================== FORM ====================== */
.ilc-form-card {
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 22px 24px 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .01), rgba(255, 255, 255, .01));
  box-shadow: 0 10px 30px rgba(3, 7, 18, .6);
  border: 1px solid var(--card-border);
}

.ilc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.ilc-field-full {
  grid-column: 1/-1;
}

.ilc-field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.ilc-input {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 8px 10px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
}

.ilc-input:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ====================== ALERT & EMPTY ====================== */
.ilc-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ilc-alert-danger {
  background: rgba(220, 38, 38, .2);
  border: 1px solid rgba(220, 38, 38, .4);
  color: #fecaca;
}

.ilc-alert-success {
  background: rgba(22, 163, 74, .2);
  border: 1px solid rgba(22, 163, 74, .4);
  color: #bbf7d0;
}

.ilc-alert-info {
  background: rgba(59, 130, 246, .2);
  border: 1px solid rgba(59, 130, 246, .4);
  color: #bfdbfe;
}

.ilc-empty-state {
  text-align: center;
  padding: 18px;
  color: #94a3b8;
}

/* ====================== PAYMENTS & INVOICE ====================== */
.ilc-card-pembayaran {
  margin: 24px auto;
  max-width: 1650px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--bg-surface);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .55);
  border: 1px solid rgba(56, 189, 248, .25);
}

.ilc-card-invoice-detail {
  margin: 24px auto;
  max-width: 1450px;
  padding: 22px 24px 26px;
  border-radius: 20px;
  background: rgb(10 14 25);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .65);
  border: 1px solid rgba(56, 189, 248, .25);
}

.ilc-invoice-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 18px;
}

.ilc-summary-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, .16), rgba(15, 23, 42, .96));
  border: 1px solid rgba(30, 64, 175, .8);
}

/* ====================== PODS LIST SELECT ====================== */
.pods-list-select-values-container {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 10px;
  padding: 4px;
}

.pods-list-select-item {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 8px;
  margin-bottom: 6px;
  color: #e2e8f0 !important;
}

.pods-list-select-item:hover {
  background: #334155 !important;
  border-color: #3b82f6 !important;
}

.pods-list-select-item__inner li,
.pods-list-select-item__name {
  color: #e2e8f0 !important;
  font-size: 13px;
}

.pods-list-select-item__icon .dashicons,
.pods-list-select-item__remove .dashicons,
.pods-list-select-item__view .dashicons {
  color: #93c5fd !important;
}

.pods-list-select-item__drag-handle .dashicons {
  color: #64748b !important;
}

/* ====================== MOBILE (DRAWER) ====================== */
.ilc-mobile-topbar {
  display: none;
}

.ilc-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, .6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease-out;
}

.ilc-mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ====================== RESPONSIVE ≤ 860px ====================== */
@media(max-width:860px) {
  .ilc-wrap {
    flex-direction: column;
  }

  .ilc-main {
    margin-left: 0;
    padding: 16px 14px 24px;
  }

  .ilc-main-guru {
    margin-left: 0;
    margin-top: 15px;
    padding: 16px 24px 24px;
  }

  .ilc-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 18px;
    position: sticky;
    top: 0;
    z-index: 900;
    background: linear-gradient(180deg, rgba(8, 13, 25, .95), rgba(6, 9, 18, .98));
    border-bottom: 1px solid rgba(255, 255, 255, .03);
  }

  .ilc-mobile-topbar-title {
    font-size: 16px;
    font-weight: 600;
    padding-right: 0;
    margin-left: auto;
  }

  .ilc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80vw;
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform .28s ease-out;
    padding: 20px 24px;
  }

  .ilc-sidebar.is-open {
    transform: translateX(0);
  }

  body.ilc-sidebar-open {
    overflow: hidden;
  }
}

/* ==================== HALAMAN PROFIL SISWA & GURU ==================== */
.ilc-profil-page {
  max-width: 1450px;
  margin: 40px auto;
  padding: 24px 26px 26px;
  border-radius: var(--ilc-profil-radius-xl);
  border: 1px solid var(--ilc-profil-border);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .85);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, .16), transparent 55%), radial-gradient(circle at bottom right, rgba(37, 99, 235, .22), transparent 60%), var(--ilc-profil-bg);
  color: var(--ilc-profil-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ilc-profil-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, .35);
  margin-bottom: 18px;
}

.ilc-profil-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #f9fafb;
}

.ilc-profil-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ilc-profil-text-muted);
}

.ilc-profil-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.ilc-profil-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 8px;
}

.ilc-section-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: bold;
}

.ilc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.ilc-field-full {
  grid-column: 1/-1;
}

.ilc-field label {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  color: var(--ilc-profil-text-muted);
}

.ilc-field input,
.ilc-field textarea {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .6);
  background: rgba(15, 23, 42, .95);
  color: var(--ilc-profil-text-main);
  font-size: 13px;
  outline: none;
}

.ilc-field-input.ilc-field textarea {
  border-radius: 10px !important;
}

.ilc-field textarea {
  border-radius: 10px;
  resize: vertical;
  min-height: 80px;
}

.ilc-field input:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.ilc-field input:focus,
.ilc-field textarea:focus {
  border-color: var(--ilc-profil-electric);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .35);
}

.ilc-field-label {
  font-size: 10px;
}

.ilc-field-value {
  margin-bottom: 10px;
  font-weight: bold;
}

/* ====================== PROFIL ACTION ====================== */
.ilc-profil-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ilc-btn-primary,
.ilc-btn-ghost,
.ilc-btn-ghost-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ilc-profil-radius-pill);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.ilc-btn-primary {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 7px;
  font-size: 13px;
  background: linear-gradient(135deg, var(--ilc-profil-electric), var(--ilc-profil-electric-bright));
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .45);
  transition: transform .08s ease, box-shadow .08s ease, opacity .08s ease;
}

.ilc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, .55);
  opacity: .96;
}

.ilc-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .9);
  opacity: .9;
}

.ilc-btn-ghost {
  margin: 0;
  padding: 9px 20px;
  font-size: 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--ilc-profil-text-main);
  border-radius: 10px;
  transition: all .15s ease;
}

.ilc-btn-ghost-small {
  padding: 7px 16px;
  font-size: 12px;
  background: rgba(15, 23, 42, .9);
  color: var(--ilc-profil-text-main);
  border: 1px solid var(--ilc-profil-border);
}

/* ====================== PROFIL GURU ====================== */
.ilc-profil-page-guru {
  width: 1400px;
  max-width: 100%;
  margin: 40px auto;
  padding: 24px 26px 26px;
  border-radius: 10px;
  border: 1px solid var(--ilc-profil-border);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .85);
  background: #071025;
}

/* ====================== LAPTOP ≤ 1200px ====================== */
@media(max-width:1200px) {
  .ilc-profil-page-guru {
    width: 100%;
    margin: 28px 20px;
  }
}

/* ====================== TABLET ≤ 900px ====================== */
@media(max-width:900px) {
  .ilc-profil-page-guru {
    margin: 20px 14px;
    padding: 20px 18px;
  }
}

/* ====================== MOBILE ≤ 700px ====================== */
@media(max-width:700px) {
  .ilc-profil-page {
    margin: 20px 8px 28px;
    padding: 18px 16px 20px;
    border-radius: 22px;
  }

  .ilc-profil-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ilc-profil-grid {
    grid-template-columns: 1fr;
  }

  .ilc-profil-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .ilc-btn-primary,
  .ilc-btn-ghost {
    width: 100%;
  }

  .ilc-profil-page-guru {
    margin: 12px 1px 20px;
    padding: 30px;
    border-radius: 12px;
  }
}

/*=================================================================*/
/*-----------------------------------MIGRASI----------------------*/
/*=================================================================*/
/* ===============================
   ILC DASHBOARD LAYOUT BASE
=============================== */
.ilc-app {
  display: flex;
  min-height: 100vh;
  background: #020617;
  color: #e5e7eb
}

.ilc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #071025;
  border-right: 1px solid rgba(148, 163, 184, .2);
  z-index: 100;
  transition: transform .25s ease
}

.ilc-main-wrapper {
  margin-left: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%
}

.ilc-main {
  flex: 1;
  padding: 24px
}

.ilc-footer {
  display: flex;
  justify-content: center;
  padding: 12px 24px;
  font-size: 12px;
  opacity: .6
}

/* ===============================
   TOPBAR
=============================== */
.ilc-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
  background: #020617
}

.ilc-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px
}

.ilc-logo {
  font-weight: 700
}

.ilc-logo img {
  height: 28px;
  width: auto
}

.ilc-topbar-center {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-right: 30px
}

.ilc-topbar-search {
  width: 160px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, .35);
  color: #e5e7eb
}

.ilc-topbar-right {
  display: flex;
  align-items: center
}

/* ===============================
   USER DROPDOWN (DESKTOP)
=============================== */
.ilc-user-menu {
  position: relative;
  padding: 8px 4px
}

.ilc-user-icon {
  margin-right: 10px;
  cursor: pointer
}

.ilc-user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #071025;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 10px;
  padding: 10px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  pointer-events: none
}

.ilc-user-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px
}

.ilc-user-menu:hover .ilc-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto
}

.ilc-user-dropdown a {
  display: block;
  padding: 6px 8px;
  font-size: 13px
}

/* ===============================
   SIDEBAR MENU
=============================== */
.ilc-sidebar-inner {
  padding: 16px
}

.ilc-sidebar-logo {
  font-weight: 700;
  margin-bottom: 16px
}

.ilc-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0
}

.ilc-sidebar-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px
}

.ilc-sidebar-user a {
  display: block;
  padding: 8px 12px;
  font-size: 13px
}

/* ===============================
   MOBILE
=============================== */
.mobile-only {
  display: none
}

@media(max-width:1024px) {
  .ilc-sidebar {
    transform: translateX(-100%)
  }

  .ilc-sidebar.active {
    transform: translateX(0)
  }

  .ilc-main-wrapper {
    margin-left: 0
  }

  .ilc-topbar-center {
    display: none
  }

  .ilc-topbar-right {
    display: none
  }

  .mobile-only {
    display: block
  }
}

/* ===============================
   ILC DESKTOP LAYOUT – FINAL FIX
=============================== */

/* SIDEBAR */
.ilc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  z-index: 200;
}

/* WRAPPER KANAN */
.ilc-main-wrapper {
  margin-left: 260px;
  position: relative;
}

/* TOPBAR – BENARAN STICKY */
.ilc-topbar {
  position: fixed;
  /* ⬅️ BUKAN sticky */
  top: 0;
  left: 260px;
  /* ⬅️ mulai setelah sidebar */
  right: 0;
  height: 56px;
  z-index: 150;
  background: #020617;
  border-bottom: 1px solid rgba(148, 163, 184, .2);
}

/* MAIN CONTENT TURUN */
.ilc-main {
  margin-top: 80px;
  padding-top: 0;
  /* ⬅️ kasih jarak dari topbar */
}

/* SEARCH BAR */
.ilc-topbar-search {
  max-width: 320px;
  width: 100%;
}

/* ===============================
   ILC TOGGLE VISIBILITY
=============================== */

/* DESKTOP: sembunyikan toggle */
@media (min-width: 1024px) {

  .ilc-topbar-toggle,
  .ilc-mobile-menu-btn,
  .ilc-sidebar-toggle {
    display: none !important;
  }
}

/* MOBILE: tampilkan toggle */
@media (max-width: 1023px) {

  .ilc-topbar-toggle,
  .ilc-mobile-menu-btn,
  .ilc-sidebar-toggle {
    display: flex;
  }
}

/* ===============================
   ILC MOBILE LAYOUT RESET
=============================== */
@media (max-width: 860px) {

  /* Sidebar jadi off-canvas */
  .ilc-sidebar {
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 300;
  }

  /* Sidebar aktif (dibuka) */
  .ilc-sidebar.active {
    transform: translateX(0);
  }

  /* Wrapper & main FULL WIDTH */
  .ilc-main-wrapper {
    margin-left: 0 !important;
  }

  .ilc-main {
    padding: 10px 20px !important;
  }

  /* Topbar full width */
  .ilc-topbar {
    left: 0 !important;
    width: 100%;
  }

}

/* ===============================
   MOBILE SIDEBAR FIX (FINAL)
=============================== */
@media (max-width: 860px) {

  .ilc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #0b1220 0%, #071025 100%);
    box-shadow: 12px 0 40px rgba(2, 6, 23, .9), inset -1px 0 0 rgba(148, 163, 184, .12);
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 1001;
  }

  .ilc-sidebar.active {
    transform: translateX(0);
  }

  .ilc-main-wrapper {
    margin-left: 0 !important;
  }

  .ilc-menu a {
    color: #c7d2fe;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(148, 163, 184, .08);
  }

  .ilc-menu a:hover {
    background: rgba(37, 99, 235, .18);
    border-color: rgba(37, 99, 235, .4);
  }

  .ilc-menu a.is-active {
    background:
      linear-gradient(135deg,
        #2563eb,
        #1d4ed8);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .45);
  }

  .ilc-sidebar-logo {
    display: none !important;
    content: none !important;
  }
}

/* ===============================
   FIX OVERLAY VS TOPBAR Z-INDEX
=============================== */

/* Topbar HARUS di atas overlay */
.ilc-topbar {
  position: fixed;
  z-index: 1001;
}

/* Sidebar paling atas */
.ilc-sidebar {
  z-index: 1002;
}

/* tinggi topbar desktop & mobile */
:root {
  --ilc-topbar-h: 56px;
}

/* topbar tetap full klik */
.ilc-topbar {
  pointer-events: auto;
}

.ilc-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .55);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
}

.ilc-mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width:860px) {

  .ilc-sidebar {
    z-index: 10002;
    /* PALING ATAS */
  }

  .ilc-mobile-overlay {
    z-index: 10001;
    /* DI BAWAH SIDEBAR */
  }

}

/* ===============================
   ILC SIDEBAR PROFILE (SISWA)
=============================== */

.ilc-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 18px;
}

/* PROFILE CARD */
.ilc-sidebar-profile {
  text-align: center;
  margin-bottom: 24px;
}

.ilc-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #38bdf8;
  margin-bottom: 12px;
}

.ilc-profile-name {
  font-size: 16px;
  font-weight: 600;
  color: #e5e7eb;
}

.ilc-profile-role {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

.ilc-profile-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
  font-size: 12px;
  font-weight: 600;
}

.ilc-profile-status .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
}

/* MENU */
.ilc-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ilc-sidebar-menu li a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #c7d2fe;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: .25s;
}

.ilc-sidebar-menu li a:hover {
  background: rgba(37, 99, 235, .25);
  color: #fff;
}

.ilc-sidebar-menu li.active a {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-weight: 600;
}

/* LOGOUT */
.ilc-sidebar-menu li.danger a {
  color: #fecaca;
}

.ilc-sidebar-menu li.danger a:hover {
  background: rgba(220, 38, 38, .2);
  color: #fff;
}

/*=============================UI Baru================================*/

/* ROOT */
.ilc-app {
  background: #020617;
  color: #e5e7eb
}

/* SIDEBAR */
.ilc-sidebar {
  width: 260px;
  background: #071025;
  border-right: 1px solid rgba(148, 163, 184, .2)
}

.ilc-sidebar-inner {
  padding: 20px 16px
}

/* PROFILE CARD */
.ilc-sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .7);
  border: 1px solid rgba(148, 163, 184, .2)
}

.ilc-profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2563eb;
  margin-bottom: 10px
}

.ilc-profile-name {
  font-size: 15px;
  font-weight: 600
}

.ilc-profile-role {
  font-size: 12px;
  opacity: .7;
  margin-top: 2px
}

.ilc-profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 8px
}

.ilc-profile-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e
}

/* MENU */
.ilc-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.ilc-sidebar-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #c7d2fe;
  text-decoration: none;
  transition: background .2s, color .2s
}

.ilc-sidebar-menu li a:hover {
  background: rgba(37, 99, 235, .15);
  color: #fff
}

.ilc-sidebar-menu li.is-active a {
  background: #2563eb;
  color: #fff;
  font-weight: 600
}

.ilc-sidebar-menu li.danger a {
  color: #fecaca
}

.ilc-sidebar-menu li.danger a:hover {
  background: rgba(220, 38, 38, .15);
  color: #fff
}

.ilc-sidebar-menu li.disabled a {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* TOPBAR */
.ilc-topbar {
  position: fixed;
  gap: 12px;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #020617;
  border-bottom: 1px solid rgba(148, 163, 184, .3)
}

.ilc-sidebar-toggle {
  font-size: 20px;
  background: none;
  border: none;
  color: #e5e7eb;
  cursor: pointer
}

.ilc-topbar-right {
  display: flex;
  align-items: center;
  margin-right: 15px
}

.ilc-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px
}

.ilc-topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, .4)
}

.ilc-topbar-name {
  font-size: 14px;
  font-weight: 600
}

.ilc-topbar-role {
  font-size: 12px;
  opacity: .6
}

.ilc-topbar-left,
.ilc-topbar-center,
.ilc-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px
}

.ilc-topbar-logo img {
  height: 28px
}

.ilc-topbar-search {
  width: 260px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #071025;
  border: 1px solid rgba(148, 163, 184, .25);
  color: #e5e7eb
}

/* USER MENU */
.ilc-user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 4px
}

.ilc-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%
}

.ilc-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #071025;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  pointer-events: none
}

.ilc-user-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px
}

.ilc-user-menu:hover .ilc-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto
}

.ilc-user-dropdown a {
  display: block;
  padding: 8px 10px;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 8px
}

.ilc-user-dropdown a:hover {
  background: #2563eb;
  color: #fff
}

/* VISIBILITY */
.desktop-only {
  display: flex
}

.mobile-only {
  display: none
}

/* MOBILE */
@media (max-width:860px) {
  .desktop-only {
    display: none
  }

  .mobile-only {
    display: inline-flex
  }
}

/* MOBILE */
@media (max-width:860px) {
  .desktop-only {
    display: none !important
  }

  .mobile-only {
    display: block !important
  }

  .ilc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 9999
  }

  .ilc-sidebar.active {
    transform: translateX(0)
  }

  .ilc-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .6);
    z-index: 9998;
    display: none
  }

  .ilc-mobile-overlay.active {
    display: block
  }

  .ilc-main-wrapper {
    margin-left: 0 !important
  }
}

/* DASHBOARD CONTENT */
.ilc-dashboard-content {
  max-width: 1200px;
  margin-top: 60px;
  padding: 12px 4px 40px
}

/* HEADER */
.ilc-dashboard-header {
  margin-bottom: 18px
}

.ilc-dashboard-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0
}

.ilc-dashboard-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px
}

/* TAB NAV */
.ilc-tab-nav {
  display: flex;
  gap: 8px;
  margin: 0px 0 22px;
  border-bottom: 1px solid rgba(148, 163, 184, .2)
}

.ilc-tab-nav a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all .2s ease
}

.ilc-tab-nav a:hover {
  color: #e5e7eb
}

.ilc-tab-nav a.active {
  color: #fff;
  border-color: #2563eb
}

/* PANEL BASE */
.ilc-panel {
  background: #071025;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 24px
}

.ilc-panel h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 14px
}

/* DASHBOARD SUMMARY */
.ilc-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px
}

.ilc-summary-list li {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px
}

.ilc-summary-list li strong {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 4px
}

/* PROFIL GRID */
.ilc-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px
}

.ilc-profile-grid>div {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
  padding: 14px 16px
}

.ilc-profile-grid span {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 4px
}

.ilc-profile-grid strong {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb
}

/* BUTTON */
.ilc-btn-primary {
  background: #2563eb;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease
}

.ilc-btn-primary:hover {
  background: #1d4ed8
}

/* MOBILE */
@media (max-width:768px) {
  .ilc-dashboard-content {
    padding: 8px 0 32px
  }

  .ilc-dashboard-header h2 {
    font-size: 18px
  }

  .ilc-tab-nav {
    gap: 4px
  }

  .ilc-tab-nav a {
    padding: 8px 10px;
    font-size: 13px
  }

  .ilc-profile-avatar {
    display: block;
    margin: 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
  }

  .ilc-sidebar-toggle {
    padding-left: 0 !important;
    font-size: 28px !important;
  }
}

/* Fix warna teks input Nominal (Rp) saat focus */
.ilc-modal-payment-form input.ilc-input {
  color: #ffffff;
}

.ilc-modal-payment-form input.ilc-input:focus,
.ilc-modal-payment-form input.ilc-input:focus-visible {
  color: #ffffff !important;
}
