*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #eef1f7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #1f2933;
}

main.container {
  margin-bottom: 3rem;
}

/* ========== SPLASH COVER ========== */

#splashScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at top left, #4f46e5, #111827);
}

.splash-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2.75rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.5);
}

.splash-badge {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.splash-title {
  margin-top: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.splash-subtitle {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.splash-name {
  margin-top: 1.1rem;
  font-size: 1rem;
}

.splash-from {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.splash-footnote {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ========== HEADER ========== */

.app-header {
  background: linear-gradient(90deg, #004e92, #000428);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.app-header {
  position: sticky;        /* stick inside the page while scrolling */
  top: 0;                  /* stick to the very top */
  z-index: 1050;           /* stay above cards & table */
  background: linear-gradient(90deg, #0f172a, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4); /* slight shadow under header */
}


.logo-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.welcome-text {
  font-size: 0.75rem;
  opacity: 0.8;
}

.welcome-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
}

/* ========== CARDS & BUTTONS ========== */

.card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.btn {
  border-radius: 999px;
  font-weight: 500;
}

.btn-success {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #15803d, #166534);
}

/* SUMMARY CARDS */

.summary-card {
  border-radius: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.summary-hours {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.summary-classes {
  background: linear-gradient(135deg, #43a047, #2e7d32);
}

.summary-students {
  background: linear-gradient(135deg, #fb8c00, #ef6c00);
}

.summary-card h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.summary-card .value {
  font-size: 2rem;
  font-weight: 700;
}

/* TABLE */

.table {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  background: #f9fafb;
}

.table input.form-control {
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.table-responsive {
  max-height: 420px;
  overflow-y: auto;
}

.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

#gridBody td:last-child {
  width: 90px;
  text-align: center;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  #splashScreen {
    padding: 1rem;
  }

  .splash-card {
    padding: 2rem 1.5rem;
  }

  .table-responsive {
    max-height: none;
  }

  .app-header .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
/* ---- Footer bar ---- */
.footer-bar {
  background: #020617;
  color: #cbd5f5;
  font-size: 13px;
}

.grow-link {
  cursor: pointer;
  color: #60a5fa;
  font-weight: 500;
}

.grow-link:hover {
  text-decoration: underline;
}

/* ---- GrowNiti Modal ---- */

.grow-modal {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  border: none;
}

.grow-modal .modal-header {
  background: #f3f4f6;
  padding: 0.9rem 1.5rem;
}

.grow-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-right: 0.35rem;
}

.grow-brand {
  font-weight: 700;
  color: #1d4ed8;
}

.grow-modal-body {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 1.4rem;
  background: #f9fafb;
}

.grow-photo-wrap {
  flex: 0 0 140px;
}

.grow-photo {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.grow-text {
  font-size: 0.9rem;
  color: #374151;
}

.grow-lead {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.grow-list {
  margin: 0 0 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: #111827;
}

.grow-list li {
  margin-bottom: 0.15rem;
}

.grow-contact span {
  font-weight: 600;
  color: #111827;
}

.grow-contact a {
  color: #1d4ed8;
  text-decoration: none;
}

.grow-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .grow-modal-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .grow-photo-wrap {
    flex: 0 0 auto;
  }
}

/* ===== STATUS / NOTIFICATION PILL ===== */
#statusMessage {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(22, 163, 74, 0.08);  /* default success bg */
  color: #15803d;                        /* default success text */
  border: 1px solid rgba(22, 163, 74, 0.25);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
}

/* visible state */
#statusMessage.status-visible {
  opacity: 1;
  transform: translateY(0);
}

/* error variant (set via JS) */
#statusMessage.status-error {
  background: rgba(248, 113, 113, 0.08);
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.35);
}
