/**
 * Integrated Academic System - Magister Pendidikan (M.Pd.)
 * Universitas Linggabuana PGRI Sukabumi (UNLIP)
 * Modern Academic Stylesheet (Vanilla CSS3)
 */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-dark: #090f1d;
  --secondary: #d97706;
  --secondary-light: #f59e0b;
  --secondary-hover: #b45309;
  --accent: #3b82f6;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #0ea5e9;

  --bg: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #3b82f6;

  --sidebar-width: 270px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -1px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 28px -3px rgba(15, 23, 42, 0.09), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================================================
   HEADER & PUBLIC NAVIGATION
   ===================================================================== */
.site-topbar {
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-info span {
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0c2340 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  border: 2px solid var(--secondary);
  box-shadow: 0 4px 12px rgba(12, 35, 64, 0.2);
}
.brand-text h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.brand-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  padding: 8px 0;
  position: relative;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--primary);
}
.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--bg-subtle);
}

/* =====================================================================
   BUTTONS & BADGES
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover {
  transform: translateY(-1.5px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: linear-gradient(135deg, #0c2340 0%, #1e3a8a 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(12, 35, 64, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #163660 0%, #2563eb 100%);
  box-shadow: 0 4px 14px rgba(12, 35, 64, 0.35);
  color: #ffffff;
}
.btn-secondary {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  color: #ffffff;
}
.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--border);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
  color: var(--primary);
}
.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #ffffff;
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  color: #ffffff;
}
.btn-info {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}
.btn-info:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  color: #ffffff;
}
.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
}
.btn-lg {
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 10px;
}
.btn-whatsapp {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.badge-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-primary { background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; }

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero-section {
  background: linear-gradient(135deg, rgba(12, 35, 64, 0.95), rgba(7, 21, 38, 0.97)), url('../images/pattern.png') center/cover;
  color: #ffffff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid rgba(217, 119, 6, 0.5);
  color: #fde68a;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 800px;
}
.hero-title span {
  color: var(--secondary-light);
}
.hero-lead {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 700px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.pmb-banner-alert {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(6px);
}

/* =====================================================================
   CONTAINER & GRIDS
   ===================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}
.stat-card {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--secondary);
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.12);
}
.stat-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.section {
  padding: 70px 0;
}
.section-subtle {
  background-color: var(--bg-subtle);
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.08);
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.2px;
}
.card-body {
  padding: 24px;
}
.card-footer {
  padding: 14px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

/* =====================================================================
   DASHBOARD LAYOUT (Modern Glass & Deep Gradient)
   ===================================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #09101d 0%, #0d1726 60%, #070c16 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  transition: var(--transition);
}
.dashboard-sidebar::-webkit-scrollbar {
  width: 5px;
}
.dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 119, 6, 0.5);
}

.sidebar-header {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(217, 119, 6, 0.15);
  color: #fde68a;
  border: 1px solid rgba(217, 119, 6, 0.35);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-top: 5px;
  letter-spacing: 0.5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
}

.sidebar-menu {
  list-style: none;
  padding: 16px 12px 30px;
  flex: 1;
}
.menu-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  padding: 14px 12px 6px;
}
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: all 0.18s ease;
}
.sidebar-menu li a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.sidebar-menu li a.active {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}
.sidebar-menu li a svg {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

/* Grouped Sidebar (Slide Bar) */
.sidebar-group {
  margin-bottom: 6px;
}
.sidebar-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
}
.sidebar-group-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}
.sidebar-group.active .sidebar-group-btn,
.sidebar-group.open .sidebar-group-btn {
  color: #ffffff;
}
.sidebar-group-btn .group-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-group-btn .group-label svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}
.sidebar-group-btn .chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}
.sidebar-group.open .sidebar-group-btn .chevron-icon {
  transform: rotate(90deg);
  opacity: 1;
}
.sidebar-submenu {
  list-style: none;
  padding: 4px 0 6px 14px;
  margin: 0;
  display: none;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  margin-left: 20px;
}
.sidebar-group.open .sidebar-submenu {
  display: block;
}
.sidebar-submenu li a {
  padding: 8px 12px;
  font-size: 13px;
  color: #94a3b8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  margin-bottom: 2px;
}
.sidebar-submenu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.sidebar-submenu li a.active {
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 998;
}
.sidebar-backdrop.show {
  display: block;
}

.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-width: 0;
}

/* Modern Topbar */
.dashboard-topbar {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sidebar-toggle-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  transition: all 0.15s ease;
}
.sidebar-toggle-btn:hover {
  background: #e2e8f0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  text-decoration: none;
  transition: all 0.15s ease;
}
.breadcrumb-item:hover {
  color: var(--primary);
  background: #e2e8f0;
}
.breadcrumb-separator {
  color: #cbd5e1;
  font-size: 12px;
}
.breadcrumb-current {
  font-weight: 700;
  color: var(--primary);
  padding: 5px 12px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-date-chip,
.topbar-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.topbar-link-chip:hover {
  background: #f1f5f9;
  color: var(--primary);
  border-color: #cbd5e1;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.user-avatar-wrap {
  position: relative;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c2340 0%, #1e3a8a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.avatar-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}
.user-meta-info .user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.user-meta-info .user-email {
  font-size: 11px;
  color: var(--text-muted);
}

.dashboard-content {
  padding: 28px;
  flex: 1;
}

/* =====================================================================
   METRIC STATS (Modern KPI Cards)
   ===================================================================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.metric-box {
  background: #ffffff;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.metric-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.metric-box .info h4 {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.metric-box .info .number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.metric-icon.blue { background: #eff6ff; color: #2563eb; }
.metric-icon.green { background: #ecfdf5; color: #059669; }
.metric-icon.amber { background: #fffbeb; color: #d97706; }
.metric-icon.red { background: #fef2f2; color: #dc2626; }

/* =====================================================================
   DATA TABLES & RESPONSIVENESS
   ===================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13.5px;
}
.table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tr:hover td {
  background-color: #f8fafc;
}

/* =====================================================================
   FORMS & INPUTS
   ===================================================================== */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f8fafc;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.form-control:focus {
  background-color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* =====================================================================
   PMB STEPPER (4 Steps)
   ===================================================================== */
.stepper-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}
.stepper-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.stepper-step::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -50%;
  right: 50%;
  height: 3px;
  background: var(--border);
  z-index: 1;
}
.stepper-step:first-child::before {
  display: none;
}
.stepper-step.completed::before,
.stepper-step.active::before {
  background: var(--secondary);
}
.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  z-index: 2;
}
.stepper-step.active .stepper-circle {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #ffffff;
}
.stepper-step.completed .stepper-circle {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
}
.stepper-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
}
.stepper-step.active .stepper-title {
  color: var(--primary);
  font-weight: 700;
}

/* =====================================================================
   ALERTS & FLASH NOTICES
   ===================================================================== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1.5px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1.5px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1.5px solid #fde68a; }
.alert-info { background: #f0f9ff; color: #0369a1; border: 1.5px solid #bae6fd; }

/* Modern Modal Animations & Glass Backdrop */
.modal {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal > div {
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 60px 0 24px;
  border-top: 4px solid var(--secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
}
.footer-col ul li a:hover {
  color: #ffffff;
}
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

/* =====================================================================
   PRINT STYLES
   ===================================================================== */
@media print {
  .site-header, .site-topbar, .site-footer,
  .dashboard-sidebar, .dashboard-topbar,
  .btn, .no-print {
    display: none !important;
  }
  .dashboard-main {
    margin-left: 0 !important;
    background: #ffffff !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .print-area {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
}

/* =====================================================================
   RESPONSIVE QUERIES
   ===================================================================== */
@media (max-width: 992px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }
  .dashboard-sidebar.show {
    transform: translateX(0);
  }
  .dashboard-main {
    margin-left: 0;
  }
  .sidebar-toggle-btn {
    display: inline-flex !important;
  }
  .hide-mobile {
    display: none !important;
  }
  .site-nav {
    display: none;
  }
  .nav-toggle-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-topbar {
    display: none;
  }
  .dashboard-topbar {
    padding: 0 16px;
  }
  .dashboard-content {
    padding: 16px;
  }
}

