/* Wrap long college names in paid students table */
.paid-students-table {
  table-layout: fixed;
  min-width: 1120px;
}

.paid-students-table .college-column,
.college-truncate {
  width: 160px !important;
  max-width: 160px !important;
  min-width: 160px !important;
}

.college-truncate {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
/* =========================================================
   Acuere E-Learning – Custom UI Overrides
   ========================================================= */

/* ── Google Font ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Root Variables ──────────────────────────────────────── */
:root {
  --brand-primary:   #1a73e8;
  --brand-dark:      #0d47a1;
  --brand-success:   #2e7d32;
  --sidebar-bg:      #1a1f36;
  --sidebar-hover:   rgba(255,255,255,0.08);
  --sidebar-active:  rgba(26,115,232,0.18);
  --sidebar-accent:  #1a73e8;
  --card-radius:     12px;
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:       0 4px 20px rgba(0,0,0,0.12);
}

/* ── Base ────────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: #f0f2f8 !important;
}

/* ── Layout Fix: prevent main content from going under sidebar ── */
@media (min-width: 1200px) {
  .g-sidenav-show .main-content {
    margin-left: 17rem !important;
  }
}

/* ── Sidebar ─────────────────────────────────────────────── */
#sidenav-main {
  background: var(--sidebar-bg) !important;
  border: none !important;
  box-shadow: 4px 0 20px rgba(0,0,0,0.18) !important;
}

#sidenav-main .sidenav-header {
  padding: 20px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#sidenav-main .sidenav-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

#sidenav-main .sidenav-header .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

#sidenav-main .sidenav-header .brand-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

#sidenav-main .sidenav-header .brand-subtitle {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#sidenav-main hr.horizontal {
  border-color: rgba(255,255,255,0.08) !important;
}

#sidenav-main .nav-item {
  margin: 2px 8px;
}

#sidenav-main .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.7) !important;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

#sidenav-main .nav-link:hover {
  background: var(--sidebar-hover);
  color: #fff !important;
}

#sidenav-main .nav-link.active {
  background: var(--sidebar-active);
  color: #fff !important;
  font-weight: 600;
}

#sidenav-main .nav-link.active .material-symbols-rounded {
  color: var(--sidebar-accent) !important;
  opacity: 1 !important;
}

#sidenav-main .nav-link .material-symbols-rounded {
  font-size: 20px;
  opacity: 0.75;
  flex-shrink: 0;
}

#sidenav-main .nav-link:hover .material-symbols-rounded {
  opacity: 1;
}

#sidenav-main .nav-section-label {
  padding: 16px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

#sidenav-main .logout-link {
  color: rgba(255,100,100,0.8) !important;
}
#sidenav-main .logout-link:hover {
  background: rgba(255,50,50,0.12);
  color: #ff6b6b !important;
}

/* ── Topbar / Navbar ─────────────────────────────────────── */
.navbar-main {
  background: #fff !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
  border-radius: 12px !important;
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 20px 0;
}

.page-header-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1f36;
  margin: 0;
}

.page-header-section .page-date {
  font-size: 13px;
  color: #6b7280;
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  border-radius: var(--card-radius) !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md) !important;
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}

.stat-icon.blue   { background: linear-gradient(135deg, #1a73e8, #0d47a1); }
.stat-icon.green  { background: linear-gradient(135deg, #34a853, #1b5e20); }
.stat-icon.orange { background: linear-gradient(135deg, #fb8c00, #e65100); }
.stat-icon.purple { background: linear-gradient(135deg, #7c4dff, #4527a0); }
.stat-icon.teal   { background: linear-gradient(135deg, #00bcd4, #006064); }
.stat-icon.red    { background: linear-gradient(135deg, #e53935, #b71c1c); }
.stat-icon.indigo { background: linear-gradient(135deg, #3949ab, #1a237e); }
.stat-icon.pink   { background: linear-gradient(135deg, #e91e63, #880e4f); }

.stat-card .card-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 18px 20px 10px !important;
}

.stat-card .card-footer {
  background: #fafafa !important;
  border-top: 1px solid rgba(0,0,0,0.05) !important;
  padding: 10px 20px !important;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1a1f36;
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0;
}

.stat-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin: 24px 0 12px;
  padding-left: 4px;
  border-left: 3px solid var(--brand-primary);
  padding-left: 10px;
}

/* ── Data Table Card ─────────────────────────────────────── */
.data-card {
  border-radius: var(--card-radius) !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
}

.data-card .card-header-gradient {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%) !important;
  border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
  padding: 18px 20px !important;
}

.data-card .card-header-gradient h6 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-bar .filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-bar label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin: 0;
}

.filter-bar input[type="text"],
.filter-bar input[type="date"] {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1a1f36;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s;
}

.filter-bar input[type="text"]:focus,
.filter-bar input[type="date"]:focus {
  border-color: var(--brand-primary);
  background: #fff;
}

.filter-bar input[type="text"] { width: 260px; }
.filter-bar input[type="date"] { width: 148px; }

.filter-bar .record-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-success);
  background: #e8f5e9;
  padding: 8px 14px;
  border-radius: 8px;
  margin-left: auto;
  white-space: nowrap;
}

/* ── Table Styles ────────────────────────────────────────── */
.custom-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.custom-table thead th {
  background: #f0f2f8;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px 14px;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.custom-table tbody tr {
  transition: background 0.15s;
}

.custom-table tbody tr:hover {
  background: #f0f7ff;
}

.custom-table tbody td {
  padding: 10px 14px;
  font-size: 12.5px;
  color: #374151;
  border-bottom: 1px solid #f0f2f8;
  vertical-align: middle;
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}

.custom-table tbody td a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.custom-table th:last-child,
.custom-table td:last-child {
  width: 90px;
  white-space: nowrap;
}

.subjects-table th:nth-child(3),
.subjects-table td:nth-child(3),
.topics-table th:nth-child(2),
.topics-table td:nth-child(2),
.topics-table th:nth-child(3),
.topics-table td:nth-child(3),
.videos-table th:nth-child(2),
.videos-table td:nth-child(2),
.videos-table th:nth-child(3),
.videos-table td:nth-child(3),
.videos-table th:nth-child(4),
.videos-table td:nth-child(4),
.videos-table th:nth-child(5),
.videos-table td:nth-child(5),
.videos-table th:nth-child(7),
.videos-table td:nth-child(7) {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.subjects-table th:nth-child(3),
.subjects-table td:nth-child(3) {
  width: 24%;
}

.topics-table th:nth-child(2),
.topics-table td:nth-child(2),
.topics-table th:nth-child(3),
.topics-table td:nth-child(3) {
  width: 30%;
}

.videos-table th:nth-child(2),
.videos-table td:nth-child(2),
.videos-table th:nth-child(3),
.videos-table td:nth-child(3),
.videos-table th:nth-child(4),
.videos-table td:nth-child(4) {
  width: 16%;
}

.videos-table th:nth-child(5),
.videos-table td:nth-child(5),
.videos-table th:nth-child(7),
.videos-table td:nth-child(7) {
  width: 18%;
}

.notifications-table th:nth-child(3),
.notifications-table td:nth-child(3) {
  width: 26%;
}

.notifications-table th:nth-child(4),
.notifications-table td:nth-child(4) {
  width: 40%;
}

.monthly-report-table th:nth-child(2),
.monthly-report-table td:nth-child(2) {
  width: 55%;
}

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

.table-responsive-custom {
  max-height: 65vh;
  overflow-y: auto;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}

.table-responsive-custom::-webkit-scrollbar { width: 6px; }
.table-responsive-custom::-webkit-scrollbar-track { background: #f0f2f8; }
.table-responsive-custom::-webkit-scrollbar-thumb { background: #c5cae9; border-radius: 3px; }

/* ── Badges ──────────────────────────────────────────────── */
.badge-active   { background: #e8f5e9; color: #2e7d32; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-inactive { background: #fff3e0; color: #e65100; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-danger  { background: #ffebee; color: #c62828; }
.btn-icon-danger:hover  { background: #c62828; color: #fff; }
.btn-icon-edit    { background: #e3f2fd; color: #1565c0; }
.btn-icon-edit:hover    { background: #1565c0; color: #fff; }
.btn-icon-view    { background: #e8f5e9; color: #2e7d32; }
.btn-icon-view:hover    { background: #2e7d32; color: #fff; }

.btn-export {
  background: linear-gradient(135deg, #34a853, #1b5e20);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-export:hover { opacity: 0.9; }

.btn-primary-custom {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary-custom:hover { opacity: 0.9; }

/* ── Alert / Flash Messages ──────────────────────────────── */
.flash-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.flash-error   { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }

/* ── Form Card ───────────────────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.form-card .form-card-header {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-card .form-card-header h6 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.form-card .form-card-body {
  padding: 24px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1a1f36;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
  background: #fff;
}

/* ── Login Page ──────────────────────────────────────────── */
.login-page-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-page-brand .brand-logo-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(26,115,232,0.35);
}

.login-page-brand h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.login-page-brand p {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

.login-card {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
}

.login-card .login-card-header {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3561 100%);
  padding: 24px 24px 20px;
  text-align: center;
}

.login-card .login-card-header h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.login-card .login-card-header p {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin: 6px 0 0;
}

.login-card .card-body {
  padding: 28px !important;
}

.login-form-group {
  margin-bottom: 20px;
}

.login-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.login-form-group .input-wrapper {
  position: relative;
}

.login-form-group .input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
}

.login-form-group input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 11px 14px 11px 38px;
  font-size: 14px;
  color: #1a1f36;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.login-form-group input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
  background: #fff;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  font-family: 'Inter', sans-serif;
}
.btn-login:hover { opacity: 0.92; transform: translateY(-1px); }

.login-footer-text {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #9ca3af;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .filter-bar { flex-direction: column; }
  .filter-bar input[type="text"] { width: 100%; }
  .filter-bar input[type="date"] { width: 100%; }
}
