/* ============================================================
   Future Millionaire Academy – Main Stylesheet
   ============================================================ */

/* --- Sidebar --- */
#wrapper { min-height: 100vh; }

#sidebar {
  width: 240px;
  min-height: 100vh;
  transition: all 0.3s;
  flex-shrink: 0;
}
#sidebar.collapsed { margin-left: -240px; }

#sidebar .nav-link {
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.88rem;
  transition: background 0.2s;
}
#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background: rgba(255,255,255,0.12);
  color: #ffc107 !important;
}

/* --- Page content --- */
#page-content-wrapper { min-height: 100vh; background: #f4f6fb; }

/* --- Cards --- */
.stat-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .icon-box {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

/* --- Tables --- */
.table thead th {
  background: #1a1a2e;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: none;
}
.table tbody tr:hover { background: #eef2ff; }

/* --- Badges --- */
.badge-morning  { background: #0d6efd; color:#fff; }
.badge-evening  { background: #6f42c1; color:#fff; }
.badge-present  { background: #198754; color:#fff; }
.badge-absent   { background: #dc3545; color:#fff; }

/* --- Forms --- */
.form-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px;
}

/* --- Login page --- */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%; max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #sidebar { margin-left: -240px; }
  #sidebar.show { margin-left: 0; position: fixed; z-index: 1050; height: 100%; }
}

/* --- Navbar --- */
.navbar.bg-primary { background: #1a1a2e !important; }

/* --- Page headings --- */
.page-title {
  font-size: 1.3rem; font-weight: 700;
  color: #1a1a2e; border-left: 4px solid #ffc107;
  padding-left: 10px; margin-bottom: 20px;
}

/* --- Fee progress bar --- */
.fee-bar { height: 8px; border-radius: 4px; }
