:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.05);
}

/* ==================== Base Reset ==================== */
html, body {
  font-family: var(--font-sans) !important;
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

ul, ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

li {
  list-style: none !important;
}

a {
  text-decoration: none !important;
  transition: all 0.2s ease;
}

/* ==================== Top Header Bar ==================== */
.top-header-bar {
  background: #071527;
  color: #94a3b8;
  font-size: 0.815rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-header-bar a {
  color: #cbd5e1;
}

.top-header-bar a:hover {
  color: #38bdf8;
}

.top-pill-badge {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==================== Main Navbar ==================== */
.modern-navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 0.3s ease;
  padding: 14px 0 !important;
  box-shadow: var(--shadow-sm);
}

.modern-navbar.scrolled {
  padding: 10px 0 !important;
  box-shadow: var(--shadow-md);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-600);
  margin: 2px 0 0 0;
}

.navbar-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 991px) {
  .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 16px 0 !important;
  }
}

.nav-link-modern {
  font-size: 0.885rem !important;
  font-weight: 600 !important;
  color: var(--slate-600) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-md);
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-link-modern:hover,
.nav-link-modern.active {
  color: var(--primary-700) !important;
  background-color: var(--primary-50);
}

.btn-nav-cta {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  padding: 9px 20px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45) !important;
  color: #ffffff !important;
}

/* ==================== Hero Section ==================== */
.modern-hero {
  position: relative;
  background: linear-gradient(145deg, #071527 0%, #0d2a4a 45%, #0f4066 100%);
  color: #ffffff;
  padding: 75px 0 95px 0;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -25%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
}

.badge-status-open {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.badge-status-closed {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.025rem;
  color: #cbd5e1;
  max-width: 540px;
  margin-bottom: 26px;
  line-height: 1.65;
}

.hero-date-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-date-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-date-content h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0 0 2px 0;
  font-weight: 700;
}

.hero-date-content p {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 9999px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.5);
  color: #ffffff !important;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ==================== Login Card ==================== */
.login-card-modern {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 10;
}

.login-card-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-card-header .badge-tag {
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 8px;
}

.login-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.login-card-subtitle {
  font-size: 0.825rem;
  color: var(--slate-500);
  margin: 0;
}

.modern-form-group {
  margin-bottom: 18px;
}

.modern-form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.modern-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.modern-input-icon {
  position: absolute;
  left: 14px;
  color: var(--slate-400);
  font-size: 0.95rem;
  pointer-events: none;
}

.modern-input {
  width: 100%;
  height: 48px;
  padding: 10px 42px 10px 42px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-800);
  transition: all 0.2s ease;
}

.modern-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.toggle-password-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 6px 10px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.toggle-password-btn:hover {
  color: var(--slate-700);
}

.btn-login-modern {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.btn-login-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

/* ==================== Stats Section ==================== */
.stats-section-wrapper {
  margin-top: -45px;
  position: relative;
  z-index: 20;
  margin-bottom: 45px;
}

.stats-card-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  height: 100%;
}

.stats-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stats-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stats-icon-blue { background: #e0f2fe; color: #0284c7; }
.stats-icon-emerald { background: #d1fae5; color: #059669; }
.stats-icon-amber { background: #fef3c7; color: #d97706; }
.stats-icon-purple { background: #f3e8ff; color: #9333ea; }

.stats-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.1;
  margin: 0 0 3px 0;
}

.stats-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--slate-500);
  margin: 0;
}

/* ==================== Section Common ==================== */
.section-wrapper {
  padding: 70px 0;
}

.section-header-modern {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 45px auto;
}

.section-tag {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 0.975rem;
  color: var(--slate-500);
  margin: 0;
}

/* ==================== Flow Cards ==================== */
.flow-card-modern {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.flow-card-modern:hover {
  transform: translateY(-5px);
  border-color: var(--primary-300);
  box-shadow: var(--shadow-lg);
}

.flow-step-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25);
}

.flow-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.flow-card-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* ==================== Info & Announcements ==================== */
.info-card-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--slate-200);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-card-item:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.info-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.info-content-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 6px 0;
}

.info-content-body {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.6;
}

/* ==================== Equal-Height Agenda Cards Grid ==================== */
.agenda-card-modern {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 26px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.agenda-card-modern:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.12);
}

.agenda-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.agenda-num-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.28);
  flex-shrink: 0;
}

.agenda-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}

.agenda-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f9ff;
  color: #0284c7;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #bae6fd;
}

.agenda-card-body {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.68;
}

.agenda-card-body p {
  margin-bottom: 8px;
}

.agenda-card-body p:last-child {
  margin-bottom: 0;
}

.agenda-card-body ul, .agenda-card-body ol {
  padding-left: 20px;
  margin: 8px 0;
}

.agenda-card-body li {
  margin-bottom: 6px;
}

.agenda-card-body li:last-child {
  margin-bottom: 0;
}

.agenda-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

/* ==================== Table Styling ==================== */
.modern-table-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-modern thead th {
  background-color: var(--slate-50);
  color: var(--slate-700);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 2px solid var(--slate-200);
}

.table-modern tbody td {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--slate-800);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}

.table-modern tbody tr:hover td {
  background-color: var(--slate-50);
}

.badge-count {
  background: var(--primary-100);
  color: var(--primary-800);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-block;
}

/* ==================== Footer ==================== */
.modern-footer {
  background: #071527;
  color: #94a3b8;
  padding: 60px 0 25px 0;
  font-size: 0.9rem;
}

.footer-brand h4 {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.65;
  font-size: 0.875rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.825rem;
}

/* ==================== Floating WhatsApp ==================== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff !important;
  padding: 12px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}

.floating-whatsapp i {
  font-size: 1.35rem;
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .modern-hero {
    padding: 50px 0 70px 0;
  }
  .login-card-modern {
    margin-top: 35px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .stats-section-wrapper {
    margin-top: 20px;
  }
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    padding: 14px;
    width: 52px;
    height: 52px;
    justify-content: center;
    border-radius: 50%;
  }
}
