/* ========================================================
   SIMTEK (Sistem Informasi Manajemen Bimbingan Teknis)
   Penyelenggara: Panitia Bimtek Korwil Tangerang
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-dark: #1e40af;
  
  --secondary: #0ea5e9;
  --accent: #6366f1;
  --accent-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
  --header-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --info: #06b6d4;
  --info-light: #ecfeff;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-color: #e2e8f0;
  --border-focus: #93c5fd;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 12px 24px -4px rgba(37, 99, 235, 0.12);

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

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

/* NAVBAR */
.navbar {
  background: var(--header-gradient);
  color: var(--text-white);
  padding: 0.9rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-white);
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  color: #cbd5e1;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-user-info {
  font-size: 0.82rem;
  line-height: 1.2;
}

.nav-user-name {
  font-weight: 700;
  color: #fff;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-role {
  font-size: 0.72rem;
  color: #94a3b8;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-logout:hover {
  background: var(--danger);
  color: #fff;
}

/* MAIN WRAPPER */
.main-content {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ALERT & NOTIFICATIONS */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.alert-success {
  background: var(--success-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: var(--danger-light);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background: var(--warning-light);
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-info {
  background: var(--info-light);
  color: #155e75;
  border: 1px solid #a5f3fc;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CARDS & PANELS */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-main);
}

/* HERO BANNER */
.hero-banner {
  background: var(--accent-gradient);
  color: var(--text-white);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-theme {
  font-size: 0.98rem;
  color: #e0e7ff;
  max-width: 800px;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-focus);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.primary { background: #dbeafe; color: #1d4ed8; }
.stat-icon.success { background: #d1fae5; color: #047857; }
.stat-icon.warning { background: #fef3c7; color: #b45309; }
.stat-icon.danger  { background: #fee2e2; color: #b91c1c; }
.stat-icon.indigo  { background: #e0e7ff; color: #4338ca; }

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.btn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  background: #059669;
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

.btn-warning {
  background: var(--warning);
  color: #fff;
}

.btn-warning:hover {
  background: #d97706;
  color: #fff;
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-primary {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-negeri {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.badge-swasta {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* FORMS & INPUTS */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* TABLE STYLING */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: #1e293b;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background-color: #f1f5f9;
}

/* FILTER BAR */
.filter-bar {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-item {
  flex: 1;
  min-width: 180px;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 550px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger);
  background: #fee2e2;
}

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* LOGIN AUTH CONTAINER */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, #1e3a8a 0%, #0f172a 90%);
  padding: 1.5rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.auth-header {
  background: var(--accent-gradient);
  color: #fff;
  padding: 2.2rem 2rem;
  text-align: center;
}

.auth-icon-wrapper {
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.9rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.auth-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 0.4rem;
  border-radius: var(--radius-lg);
  margin: 1.5rem 2rem 0;
  gap: 0.4rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-body {
  padding: 1.75rem 2rem 2.25rem;
}

/* ID CARD / BUKTI PENDAFTARAN (PRINTABLE) */
.id-card-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.id-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  page-break-inside: avoid;
}

.id-card-top {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
  border-bottom: 3px solid #fbbf24;
}

.id-card-top h3 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.id-card-top p {
  font-size: 0.74rem;
  color: #e0e7ff;
}

.id-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.id-card-avatar {
  width: 72px;
  height: 72px;
  background: #f1f5f9;
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.id-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.id-card-role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: #eff6ff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid #bfdbfe;
}

.id-card-details {
  width: 100%;
  border-top: 1px dashed var(--border-color);
  padding-top: 0.85rem;
  font-size: 0.8rem;
  text-align: left;
}

.id-card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.id-card-row .label {
  color: #64748b;
  font-weight: 500;
}

.id-card-row .value {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.id-card-qr {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.id-card-qr-box {
  background: #f8fafc;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.id-card-footer {
  background: #f8fafc;
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  text-align: center;
  color: #64748b;
  border-top: 1px solid var(--border-color);
}

/* PRINT STYLES */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .navbar, .btn, .filter-bar, .alert, .card-header .btn, .no-print {
    display: none !important;
  }

  .main-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .card {
    border: none !important;
    box-shadow: none !important;
  }

  .id-card {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1.5cm;
  }

  .id-card-top {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: #1e3a8a !important;
    color: #fff !important;
  }

  .table th {
    background: #f1f5f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* FOOTER */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* PAYMENT OPTION CARDS */
.payment-option-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option-card:hover {
  border-color: var(--primary);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.payment-option-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ========================================================
   RESPONSIVE MOBILE & SMARTPHONE OPTIMIZATIONS
   ======================================================== */
@media (max-width: 768px) {
  body {
    font-size: 14.5px;
  }

  .main-content {
    padding: 1.25rem 0.85rem 3.5rem;
    max-width: 100%;
  }

  .hero-banner {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.35rem;
  }

  .hero-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .hero-theme {
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
  }

  .hero-tags {
    gap: 0.45rem;
  }

  .hero-tag {
    font-size: 0.74rem;
    padding: 0.3rem 0.65rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
  }

  .stat-card {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-md);
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .card {
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
  }

  .card-header {
    padding: 1rem 1.15rem;
  }

  .card-title {
    font-size: 1.05rem;
  }

  .card-body {
    padding: 1.15rem 1rem;
  }

  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .form-control {
    font-size: 16px; /* Prevents iOS auto zoom on focus */
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
  }

  .btn {
    min-height: 42px;
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
  }

  .btn-sm {
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .table th, .table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
  }

  .modal-dialog {
    max-width: 95%;
    margin: 1rem;
  }

  .modal-header, .modal-body, .modal-footer {
    padding: 1rem 1.15rem;
  }

  .filter-bar {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-item {
    min-width: 100%;
  }

  /* Attendance camera and signature touch area */
  #cameraVideo, #photoPreview {
    height: 220px !important;
  }

  #sigCanvas {
    height: 220px !important;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: 1.22rem;
  }

  .hero-banner {
    padding: 1.15rem 0.95rem;
  }

  .card-body {
    padding: 1rem 0.85rem;
  }

  .table th, .table td {
    padding: 0.65rem 0.75rem;
  }
}

/* ========================================================
   AUTHENTICATION & LOGIN PAGE (SPLIT HERO + FORM)
   ======================================================== */
.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
              #f1f5f9;
}

.auth-card-split {
  display: flex;
  width: 100%;
  max-width: 1040px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.auth-hero-pane {
  flex: 1.1;
  background: linear-gradient(145deg, #0b1329 0%, #0f172a 40%, #1e3a8a 100%);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.auth-hero-pane::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.auth-illustration-card {
  position: relative;
  margin: 1.25rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  transform: perspective(800px) rotateY(-2deg);
  transition: transform 0.4s ease;
}

.auth-illustration-card:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.02);
}

.auth-illustration-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.auth-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.74rem;
  font-weight: 600;
  color: #e0f2fe;
}

.auth-form-pane {
  flex: 1;
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

@media (max-width: 860px) {
  .auth-card-split {
    flex-direction: column;
    max-width: 480px;
  }
  
  .auth-hero-pane {
    padding: 1.75rem 1.5rem;
  }
  
  .auth-form-pane {
    padding: 1.75rem 1.5rem;
  }
  
  .auth-illustration-card {
    transform: none;
  }
  
  .auth-illustration-card:hover {
    transform: none;
  }
}

