/* ==========================================================================
   Infinity Course — Design System & Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-page: #FDF4F8;
  --bg-surface: #FFFFFF;
  --bg-soft: #FDF7FA;
  --bg-tint: #FCEAF2;
  --bg-tint-hover: #F9DCE9;

  --primary: #C21863;
  --primary-hover: #A81254;
  --primary-light: #FCEAF2;

  --navy: #2A2356;
  --navy-soft: #433B70;
  --text-body: #6E6A85;
  --text-muted: #8E89A3;

  --border: #EFE2EA;
  --border-strong: #E4D0DC;

  /* Status Colors */
  --status-active-bg: #E7F8EE;
  --status-active-text: #1B874B;
  --status-leave-bg: #FEF5E1;
  --status-leave-text: #B5750E;
  --status-inactive-bg: #FDECEC;
  --status-inactive-text: #CF3434;

  /* Shadows & Radii */
  --shadow-xs: 0 1px 2px rgba(42, 35, 86, 0.03);
  --shadow-sm: 0 4px 16px rgba(42, 35, 86, 0.04);
  --shadow-md: 0 10px 30px rgba(42, 35, 86, 0.06);
  --shadow-modal: 0 20px 50px rgba(42, 35, 86, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --sidebar-width: 248px;
  --transition: 0.18s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--navy);
  line-height: 1.55;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   Logo Component (High-Res Square & Horizontal Variants)
   ========================================================================== */

.brand-logo {
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.brand-logo__img {
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-logo--header .brand-logo__img--horizontal {
  height: 52px;
  width: auto;
  max-width: 220px;
}

.brand-logo--sidebar .brand-logo__img--horizontal {
  width: 100%;
  max-width: 208px;
  height: auto;
}

.brand-logo--mobile .brand-logo__img--horizontal {
  height: 40px;
  width: auto;
  max-width: 165px;
}

.brand-logo--square .brand-logo__img--square {
  width: 96px;
  height: 96px;
}

.brand-logo--footer .brand-logo__img--square {
  width: 72px;
  height: 72px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.btn--primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(194, 24, 99, 0.22);
}

.btn--soft {
  background-color: var(--bg-tint);
  color: var(--navy);
}

.btn--soft:hover {
  background-color: var(--bg-tint-hover);
}

.btn--outline {
  background-color: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--navy);
}

.btn--outline:hover {
  background-color: var(--bg-soft);
  border-color: #D7BED0;
}

.btn--sm {
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btn--full {
  width: 100%;
  padding: 12px 18px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn-icon:hover {
  background-color: var(--bg-soft);
  border-color: var(--border-strong);
}

.btn-icon--danger {
  color: #CF3434;
}

.btn-icon--danger:hover {
  background-color: #FDECEC;
  border-color: #F8C9C9;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-tint);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.status-badge--aktif {
  background-color: var(--status-active-bg);
  color: var(--status-active-text);
}

.status-badge--cuti {
  background-color: var(--status-leave-bg);
  color: var(--status-leave-text);
}

.status-badge--nonaktif {
  background-color: var(--status-inactive-bg);
  color: var(--status-inactive-text);
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-tint);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle--round {
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   Public Landing / Company Profile Page
   ========================================================================== */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.lp-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-header__inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lp-nav__link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy-soft);
  transition: color var(--transition);
}

.lp-nav__link:hover {
  color: var(--primary);
}

.lp-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-burger-btn {
  display: none;
  width: 40px;
  height: 40px;
}

.lp-mobile-menu {
  display: none;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.lp-mobile-menu.is-open {
  display: block;
}

.lp-mobile-menu__inner {
  padding-top: 12px;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-mobile-menu__link {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: background-color var(--transition), color var(--transition);
}

.lp-mobile-menu__link:hover {
  background-color: var(--bg-soft);
  color: var(--primary);
}

.lp-mobile-menu__cta {
  margin-top: 8px;
}

.lp-main {
  padding: 32px 0 64px;
}

.hero-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-card__content {
  padding: 8px 0;
}

.hero-card__title {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
}

.hero-card__desc {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 24px;
}

.hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-tint);
  border: 1px solid var(--border);
}

.hero-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-section {
  margin-top: 52px;
}

.lp-section__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.lp-section__subtitle {
  font-size: 14px;
  color: var(--text-body);
  margin-top: 6px;
  max-width: 600px;
}

.features-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-card__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 16px 0 8px;
}

.feature-card__desc {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
}

.programs-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.program-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.program-card__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 8px;
}

.program-card__desc {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.program-card__meta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.lp-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

.lp-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.lp-footer__brand {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.lp-footer__info {
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
}

.login-topbar {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px 32px;
  box-shadow: var(--shadow-md);
}

.login-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.login-card__brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-top: 10px;
}

.login-card__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 4px;
}

.login-card__desc {
  font-size: 13px;
  color: var(--text-body);
  margin-top: 6px;
}

.login-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
  font-size: 13px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.link-accent {
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
}

.link-accent:hover {
  text-decoration: underline;
}

.login-demo-box {
  margin-top: 18px;
  background-color: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-body);
}

.login-demo-box__icon {
  color: var(--navy);
  flex-shrink: 0;
  margin-top: 2px;
}

.login-demo-box__creds {
  margin-top: 4px;
  color: var(--navy);
  font-weight: 600;
}

.login-demo-box__fill {
  margin-top: 6px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.login-error {
  background-color: var(--status-inactive-bg);
  color: var(--status-inactive-text);
  border: 1px solid #F7C7C7;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 14px;
  display: none;
}

.login-error.is-visible {
  display: block;
}

.login-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-body);
  padding: 10px 0 4px;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--navy);
  font-size: 13.5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 24, 99, 0.12);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.input-wrap .form-control--with-icon-right {
  padding-right: 42px;
}

.input-wrap .form-control--with-icon-left {
  padding-left: 38px;
}

.input-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.input-icon-right-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-body);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ==========================================================================
   Admin / Owner App Shell (Sidebar + Main)
   ========================================================================== */

.app-layout {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  padding: 22px 16px 18px;
  transition: transform 0.25s ease;
}

.sidebar__brand {
  padding: 0 4px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar__close-btn {
  display: none;
  flex-shrink: 0;
}

body.drawer-open {
  overflow: hidden;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  transition: background-color var(--transition), color var(--transition);
}

.sidebar__link:hover {
  background-color: var(--bg-soft);
  color: var(--primary);
}

.sidebar__link.is-active {
  background-color: var(--primary);
  color: #FFFFFF;
}

.sidebar__footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.owner-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.owner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-tint);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.owner-info__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.owner-info__role {
  font-size: 11.5px;
  color: var(--text-body);
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 24px 28px 40px;
  min-width: 0;
}

.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  position: sticky;
  top: 0;
  z-index: 45;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 35, 86, 0.35);
  z-index: 48;
}

/* ==========================================================================
   Admin Cards, Headers, Tables & Views
   ========================================================================== */

.page-header-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.page-header-card__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.page-header-card__desc {
  font-size: 13.5px;
  color: var(--text-body);
  margin-top: 4px;
}

.page-header-card__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.kpi-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kpi-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-card__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

.kpi-card__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}

.surface-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}

.surface-card--flush {
  padding: 0;
  overflow: hidden;
}

.surface-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.surface-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.surface-card__subtitle {
  font-size: 12.5px;
  color: var(--text-body);
  margin-top: 3px;
}

/* Schedule List in Dashboard */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-item {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.upcoming-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.upcoming-item__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

.upcoming-item__time {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-tint);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.upcoming-item__teacher {
  font-size: 12.5px;
  color: var(--text-body);
}

.upcoming-item__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 3px;
}

/* Filter Toolbar */
.toolbar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.segmented-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
}

.segmented-btn.is-active {
  background-color: var(--primary);
  color: #FFFFFF;
}

.filter-select {
  height: 38px;
  padding: 0 32px 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.search-box {
  width: 280px;
  max-width: 100%;
}

.search-box .form-control {
  height: 38px;
}

.count-label {
  font-size: 12.5px;
  color: var(--text-body);
  font-weight: 500;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.data-table--compact {
  min-width: 520px;
}

.data-table thead th {
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background-color: #FFFFFF;
}

.data-table tbody td {
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-body);
  border-bottom: 1px solid #F5ECF2;
  vertical-align: middle;
}

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

.data-table tbody tr:hover td {
  background-color: #FEFAFC;
}

.cell-strong {
  color: var(--navy);
  font-weight: 700;
}

.cell-code {
  color: var(--navy);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.actions-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--text-body);
}

.empty-state__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

/* Weekly Calendar Grid View (Rekap Jadwal) */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.calendar-col {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.calendar-col__header {
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-col__day {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.calendar-col__count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-tint);
  color: var(--primary);
}

.calendar-col__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.calendar-event {
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.calendar-event:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.calendar-event__time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}

.calendar-event__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.calendar-event__meta {
  font-size: 11.5px;
  color: var(--text-body);
  line-height: 1.4;
}

.calendar-empty {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 8px;
}

/* ==========================================================================
   Modal & Toast
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(42, 35, 86, 0.42);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 540px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: modalIn 0.18s ease-out;
}

.modal--sm {
  max-width: 410px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.modal__close {
  background: none;
  border: none;
  color: var(--text-body);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  background-color: var(--bg-soft);
  color: var(--navy);
}

.modal__body {
  padding: 20px 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--navy);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: modalIn 0.2s ease-out;
}

.toast--success {
  background-color: #1B874B;
}

.toast--danger {
  background-color: #CF3434;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1100px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 880px) {
  .hero-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .lp-nav,
  .lp-cta-desktop {
    display: none;
  }
  .lp-burger-btn {
    display: inline-flex;
  }

  .mobile-topbar {
    display: flex;
  }
  .sidebar {
    transform: translateX(-100%);
    width: min(272px, 84vw);
  }
  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: var(--shadow-modal);
  }
  .sidebar__close-btn {
    display: inline-flex;
  }
  .sidebar-backdrop.is-open {
    display: block;
  }
  .app-main {
    margin-left: 0;
    padding: 18px 16px 32px;
  }
  .page-header-card__right {
    align-items: flex-start;
  }
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .programs-grid,
  .kpi-grid,
  .form-grid-2,
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .hero-card__title {
    font-size: 26px;
  }
  .search-box {
    width: 100%;
  }
  .login-card {
    padding: 26px 20px;
  }
}


/* ==========================================================================
   NIM Lookup Section (Company Profile) & Owner Reminder / Payment Views
   ========================================================================== */

.nim-lookup-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}

.nim-search-bar {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.nim-search-bar .input-wrap {
  flex: 1;
  min-width: 240px;
}

.nim-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-body);
}

.nim-chip-btn {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.nim-chip-btn:hover {
  background-color: var(--bg-tint);
  border-color: var(--primary);
  color: var(--primary);
}

.nim-result {
  margin-top: 22px;
  border: 1px solid var(--border);
  background-color: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.nim-result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.nim-result__code {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.nim-result__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 2px;
}

.nim-result__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.nim-info-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.nim-info-box__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.nim-info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 4px 0;
}

.nim-info-row span:first-child {
  color: var(--text-body);
}

.nim-info-row strong {
  color: var(--navy);
  text-align: right;
}

.nim-not-found {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background-color: var(--status-inactive-bg);
  color: var(--status-inactive-text);
  font-size: 13.5px;
  font-weight: 600;
}

/* Payment status badges */
.pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pay-badge--lunas {
  background-color: var(--status-active-bg);
  color: var(--status-active-text);
}

.pay-badge--sebagian {
  background-color: var(--status-leave-bg);
  color: var(--status-leave-text);
}

.pay-badge--belum {
  background-color: var(--status-inactive-bg);
  color: var(--status-inactive-text);
}

/* Reminder / Remember Widget */
.reminder-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.reminder-form .form-control {
  height: 38px;
}

.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.reminder-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.reminder-item.is-done {
  opacity: 0.6;
}

.reminder-item.is-done .reminder-item__text {
  text-decoration: line-through;
}

.reminder-item__left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}

.reminder-item__left input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.reminder-item__text {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

.reminder-item__tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-tint);
  color: var(--primary);
}

.tutor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.tutor-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.tutor-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 10px;
}

.tutor-card__spec {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.tutor-card__meta {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-body);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .tutor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nim-result__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .tutor-grid {
    grid-template-columns: 1fr;
  }
  .nim-lookup-card {
    padding: 20px 18px;
  }
}

/* QA: keep modal controls reachable */
.modal { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display:flex; flex-direction:column; }
.modal > form { display:flex; flex-direction:column; min-height:0; }
.modal__body { min-height:0; max-height:none; overflow-y:auto; }
.modal__header,.modal__footer { flex-shrink:0; }
@media(max-width:600px){.modal-backdrop{padding:10px}.modal{max-height:calc(100dvh - 20px)}.modal__body,.modal__header,.modal__footer{padding:14px}}

.week-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
