/* Alefa Tuition Media — Tailwind companion styles */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tracking-step-active {
  border-color: var(--brand-600, #0d9488);
  background-color: var(--brand-600, #0d9488);
  color: #fff;
}

.tracking-step-done {
  border-color: #10b981;
  background-color: #10b981;
  color: #fff;
}

.tracking-step-pending {
  border-color: #e2e8f0;
  background-color: #fff;
  color: #94a3b8;
}

/* ——— Mobile right drawer (main nav) ——— */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-overlay.is-open {
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  height: 100%;
  height: 100dvh;
  width: min(20rem, 88vw);
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.25);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}

.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 1024px) {
  .nav-overlay {
    display: none !important;
  }

  .nav-drawer {
    position: static;
    z-index: auto;
    display: flex !important;
    height: auto;
    width: auto;
    flex-direction: row;
    background: transparent !important;
    box-shadow: none;
    transform: none !important;
    visibility: visible !important;
    transition: none;
  }

  .nav-drawer[hidden] {
    display: flex !important;
  }
}

/* ——— Panel side drawers (teacher / admin) ——— */
.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.panel-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.panel-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  height: 100%;
  height: 100dvh;
  width: min(16rem, 85vw);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}

.panel-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

body.panel-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .panel-overlay {
    display: none !important;
  }

  .panel-drawer {
    position: static;
    z-index: auto;
    height: auto;
    width: 16rem;
    transform: none !important;
    visibility: visible !important;
    transition: none;
  }

  .panel-drawer[hidden] {
    display: block !important;
  }
}

/* Prevent horizontal page scroll on small screens */
html {
  overflow-x: clip;
}

/* Tables: ensure scroll wrappers work */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll table {
  min-width: 36rem;
}
