:root {
  --brand-primary: #0d5c63;
  --brand-primary-dark: #08393d;
  --brand-accent: #ee9b00;
}

body {
  background-color: #f4f6f9;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.app-navbar {
  background: linear-gradient(90deg, var(--brand-primary-dark), var(--brand-primary));
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.app-wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

.app-sidebar {
  width: 260px;
  min-width: 260px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}

.sidebar-inner { padding: 16px 10px; }

.sidebar-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9ca3af;
  font-weight: 700;
  margin: 16px 10px 6px;
}
.sidebar-section-title:first-child { margin-top: 4px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.sidebar-link:hover { background: #eef6f6; color: var(--brand-primary-dark); }
.sidebar-link.active { background: var(--brand-primary); color: #fff; font-weight: 600; }
.sidebar-link i { font-size: 16px; width: 18px; text-align: center; }

.app-content {
  flex: 1;
  padding: 24px;
  min-width: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1030;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: -280px;
    z-index: 1040;
    transition: left .2s ease;
  }
  .app-sidebar.show { left: 0; }
  .sidebar-overlay.show { display: block; }
}

.card-stat {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 18px;
  height: 100%;
}
.card-stat .stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
}
.card-stat .stat-value { font-size: 26px; font-weight: 700; }
.card-stat .stat-label { color: #6b7280; font-size: 13px; }

.bg-icon-teal { background: #0d5c63; }
.bg-icon-orange { background: #ee9b00; }
.bg-icon-red { background: #d62828; }
.bg-icon-blue { background: #1d3557; }
.bg-icon-green { background: #2a9d8f; }
.bg-icon-purple { background: #6d28d9; }

.section-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 20px;
  margin-bottom: 20px;
}

.table thead th {
  background: #f8f9fa;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #6b7280;
  border-bottom-width: 1px;
}

.badge { font-weight: 600; letter-spacing: .02em; }

.nav-tabs .nav-link.active { font-weight: 600; color: var(--brand-primary-dark); }

.pulse-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2a9d8f;
  box-shadow: 0 0 0 rgba(42,157,143,.5);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42,157,143,.5); }
  70% { box-shadow: 0 0 0 8px rgba(42,157,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,157,143,0); }
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

.edu-image-placeholder {
  width: 100%;
  height: 180px;
  background: #eef2f3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 40px;
}
