:root {
  --clr-primary: #2563EB;
  --clr-dark: #0F172A;
  --clr-bg: #F8FAFC;
  --clr-success: #16A34A;
  --clr-warning: #F59E0B;
  --clr-danger: #DC2626;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: var(--clr-bg);
  color: #1E293B;
}

a { color: var(--clr-primary); }

.btn-primary {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

/* ===== Auth ===== */
.auth-page { background: linear-gradient(135deg, var(--clr-dark), var(--clr-primary)); }
.auth-card { width: 100%; max-width: 420px; border: none; border-radius: 16px; }

/* ===== Navbar ===== */
.app-navbar {
  background-color: var(--clr-dark);
  padding: .75rem 1rem;
}
.app-navbar .navbar-brand,
.app-navbar .btn-link { color: #fff !important; }

/* ===== Layout ===== */
.app-layout { display: flex; min-height: calc(100vh - 60px); }
.app-content { flex: 1; padding: 1.5rem; max-width: 100%; }

.app-sidebar {
  width: 250px;
  background: #fff;
  border-right: 1px solid #E2E8F0;
}
@media (min-width: 992px) {
  .app-sidebar { position: sticky; top: 60px; height: calc(100vh - 60px); }
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.25rem;
  color: #334155;
  text-decoration: none;
  font-size: .92rem;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: #F1F5F9; color: var(--clr-primary); }
.sidebar-link.active {
  background: #EFF6FF;
  color: var(--clr-primary);
  border-left-color: var(--clr-primary);
  font-weight: 600;
}
.sidebar-heading {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #94A3B8;
  padding: 1rem 1.25rem .25rem;
}

/* ===== Cards ===== */
.stat-card { border: none; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ===== Hero Slider (Carousel) ===== */
:root {
  /* Atur angka ini (0.0–1.0) untuk mengatur kegelapan overlay hero.
     Semakin kecil = semakin terang/transparan, semakin besar = semakin gelap.
     Direkomendasikan 0.45–0.6 agar teks tetap terbaca tapi foto tidak tertutup. */
  --hero-overlay-opacity: 0.5;
}
.hero-slider { position: relative; }
.hero-slider .carousel-item { transition: transform 0.8s ease-in-out; }
.hero-slide {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,var(--hero-overlay-opacity)), rgba(37,99,235,var(--hero-overlay-opacity)));
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
  padding: 1.5rem;
}
.hero-slide-content h1 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-slide-content .lead {
  font-size: 1rem;
  line-height: 1.5;
  opacity: .92;
  text-shadow: 0 1px 6px rgba(0,0,0,.3);
  margin-bottom: 1.25rem;
}
.hero-slider .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%; background-color: #fff; opacity: .6;
}
.hero-slider .carousel-indicators .active { opacity: 1; }
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next { width: 5%; opacity: .8; }

/* Subtle animated particle/shimmer overlay for a less-static hero */
.hero-particles {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0, transparent 3%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.10) 0, transparent 4%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.08) 0, transparent 3%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.10) 0, transparent 3%);
  background-size: 200% 200%;
  animation: heroParticleDrift 18s ease-in-out infinite alternate;
}
@keyframes heroParticleDrift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Hero text fade + rise-in animation */
.animate-fade-up { animation: fadeUp .8s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal for cards/sections */
.reveal-on-scroll { opacity: 0; transform: translateY(24px); }
.reveal-on-scroll.is-visible {
  animation: revealUp .6s ease forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.event-card { border: none; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.event-card-thumb {
  height: 170px;
  background-size: cover;
  background-repeat: no-repeat;
}
.event-card-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
  color: #94A3B8; font-size: 2.5rem;
}
.badge-status-active { background-color: var(--clr-success); }
.badge-status-draft { background-color: #94A3B8; }
.badge-status-completed { background-color: var(--clr-primary); }

/* ===== Stats Section (Gradient Cards) ===== */
.stats-section-wrap { background: var(--clr-bg); }
.stat-gradient-card {
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .25s ease;
}
.stat-gradient-card:hover { transform: translateY(-6px); }
.stat-grad-blue { background: linear-gradient(135deg, #2563EB, #1e3a8a); }
.stat-grad-green { background: linear-gradient(135deg, #16A34A, #065f46); }
.stat-grad-orange { background: linear-gradient(135deg, #F59E0B, #b45309); }
.stat-gradient-card .stat-icon-wrap {
  width: 54px; height: 54px; margin: 0 auto 12px;
  border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.stat-gradient-card h2 { font-size: 2.4rem; margin-bottom: .25rem; }
.stat-gradient-card p { opacity: .9; }

/* ===== Section Eyebrow Label ===== */
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: #EFF6FF;
  padding: .3rem .9rem;
  border-radius: 999px;
}

.section-alt-bg { background: linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%); }
.section-tint-a { background: #F1F5FB; }
.section-tint-b { background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%); }
.py-6 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (max-width: 576px) { .py-6 { padding-top: 3rem; padding-bottom: 3rem; } }

/* ===== Feature Cards (Fitur Unggulan) ===== */
.feature-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,.1);
  border-color: transparent;
}
.feature-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.feature-icon.icon-solid-primary { background: linear-gradient(135deg, #2563EB, #1e40af); color: #fff; }
.feature-icon.icon-solid-warning { background: linear-gradient(135deg, #F59E0B, #b45309); color: #fff; }
.feature-icon.icon-solid-danger { background: linear-gradient(135deg, #DC2626, #991b1b); color: #fff; }
.feature-icon.icon-solid-info { background: linear-gradient(135deg, #0ea5e9, #0369a1); color: #fff; }
.feature-icon.icon-solid-success { background: linear-gradient(135deg, #16A34A, #15803d); color: #fff; }
.feature-icon.icon-solid-secondary { background: linear-gradient(135deg, #64748B, #334155); color: #fff; }
.feature-card h6 { font-size: 1.05rem; }

/* ===== About / Tentang Dosen Card ===== */
.about-card {
  max-width: 900px;
  background: linear-gradient(135deg, #F8FAFC, #EFF6FF);
  border-radius: 20px;
  padding: 2.5rem;
}
.about-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), #1e3a8a);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3.5rem;
  box-shadow: 0 12px 28px rgba(37,99,235,.3);
}

footer.site-footer {
  background: linear-gradient(180deg, var(--clr-dark), #060b17);
  color: #CBD5E1;
  padding: 3.5rem 0 1.5rem;
}
.footer-links li { margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.footer-links a { color: #94A3B8; text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-icon-circle {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--clr-primary);
  flex-shrink: 0;
}
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.25rem;
}

/* ===== Mobile Polish (Phase 10) ===== */
@media (max-width: 576px) {
  .app-content { padding: 1rem; }
  .card-footer .btn,
  .card-footer form { width: 100%; }
  .card-footer.d-flex { flex-direction: column; }
  .card-footer.d-flex form { width: 100%; }
  .card-footer.d-flex form .btn { width: 100%; }
  .modal-dialog { margin: .75rem; }
  .stat-card h3, .stat-card h4 { font-size: 1.4rem; }
  .hero-slide { height: 340px; }
  .hero-slide-content h1 { font-size: 1.3rem; }
  .hero-slide-content .lead { font-size: .85rem; }
  .about-card { padding: 1.5rem; border-radius: 14px; }
  .about-avatar { width: 100px; height: 100px; font-size: 2.4rem; }
  .stat-gradient-card { padding: 1.5rem 1rem; }
  .stat-gradient-card h2 { font-size: 1.9rem; }
}

/* Ensure long table cells don't force awkward horizontal scroll on small screens unnecessarily */
@media (max-width: 768px) {
  .table td, .table th { white-space: nowrap; }
}

