/* ==========================================================================
   SIMPEL-IF Components System
   ========================================================================== */

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  border-color: rgba(147, 197, 253, 0.85);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.08), 0 2px 6px -1px rgba(37, 99, 235, 0.04);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ==========================================================================
   Statistics KPI Cards
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -25px;
  right: -25px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stat-glow-color, rgba(30, 64, 175, 0.08)) 0%, transparent 70%);
  pointer-events: none;
  transition: transform var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.12), 0 4px 6px -2px rgba(37, 99, 235, 0.06);
  border-color: rgba(147, 197, 253, 0.9);
}

.stat-card:hover::before {
  transform: scale(1.3);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent-color, var(--primary-600));
}

.stat-card.stat-blue::after { background: #2563eb; }
.stat-card.stat-blue::before { --stat-glow-color: rgba(37, 99, 235, 0.12); }

.stat-card.stat-sky::after { background: #0284c7; }
.stat-card.stat-sky::before { --stat-glow-color: rgba(2, 132, 199, 0.14); }

.stat-card.stat-green::after { background: #10b981; }
.stat-card.stat-green::before { --stat-glow-color: rgba(16, 185, 129, 0.14); }

.stat-card.stat-amber::after { background: #f59e0b; }
.stat-card.stat-amber::before { --stat-glow-color: rgba(245, 158, 11, 0.14); }

.stat-card.stat-purple::after { background: #8b5cf6; }
.stat-card.stat-purple::before { --stat-glow-color: rgba(139, 92, 246, 0.14); }

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-subtext {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-blue .stat-icon-wrapper { background: var(--primary-50); color: var(--primary-700); }
.stat-sky .stat-icon-wrapper { background: var(--accent-50); color: var(--accent-600); }
.stat-green .stat-icon-wrapper { background: var(--status-paid-bg); color: var(--status-paid-text); }
.stat-amber .stat-icon-wrapper { background: var(--status-pending-bg); color: var(--status-pending-text); }
.stat-purple .stat-icon-wrapper { background: var(--status-installment-bg); color: var(--status-installment-text); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.975);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-success:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: #ffffff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 600;
}

.btn-outline:hover {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Badges (Status & Tags)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* Status Badges */
.badge-paid {
  background-color: var(--status-paid-bg);
  color: var(--status-paid-text);
  border-color: var(--status-paid-border);
}
.badge-paid .badge-dot { background-color: var(--status-paid-dot); }

.badge-scholarship {
  background-color: var(--status-scholarship-bg);
  color: var(--status-scholarship-text);
  border-color: var(--status-scholarship-border);
}
.badge-scholarship .badge-dot { background-color: var(--status-scholarship-dot); }

.badge-pending {
  background-color: var(--status-pending-bg);
  color: var(--status-pending-text);
  border-color: var(--status-pending-border);
}
.badge-pending .badge-dot { background-color: var(--status-pending-dot); }

.badge-unpaid {
  background-color: var(--status-unpaid-bg);
  color: var(--status-unpaid-text);
  border-color: var(--status-unpaid-border);
}
.badge-unpaid .badge-dot { background-color: var(--status-unpaid-dot); }

.badge-installment {
  background-color: var(--status-installment-bg);
  color: var(--status-installment-text);
  border-color: var(--status-installment-border);
}
.badge-installment .badge-dot { background-color: var(--status-installment-dot); }

/* Prodi Badges */
.badge-prodi-bkpi {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 700;
}

.badge-prodi-piaud {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
  font-weight: 700;
}

/* ==========================================================================
   Horizontal Scroll Utilities & Drag Containers
   ========================================================================== */
.horizontal-scroll,
.drag-scroll-x,
.stats-scroll-wrapper,
.cards-scroll-wrapper,
.charts-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #93c5fd transparent;
  padding-bottom: 6px;
  cursor: grab;
}

.horizontal-scroll:active,
.drag-scroll-x:active,
.table-responsive:active {
  cursor: grabbing;
}

/* ==========================================================================
   Data Tables
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #93c5fd transparent;
}

.custom-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.84rem;
}

.custom-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #eff6ff 0%, #ebf3fe 100%);
  color: #1e3a8a;
  font-weight: 700;
  padding: 13px 16px;
  border-bottom: 2px solid #bfdbfe;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.custom-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast);
}

.custom-table tbody tr:hover {
  background-color: #f0f7ff;
}

.custom-table tbody tr:last-child td {
  border-bottom: none;
}

.custom-table td {
  padding: 13px 16px;
  color: var(--text-main);
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}

.table-student-name {
  font-weight: 700;
  color: var(--text-dark);
}

.table-student-nim {
  font-size: 0.74rem;
  color: var(--text-light);
  font-family: var(--font-mono);
}

/* Empty State */
.table-empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.table-empty-icon {
  font-size: 2.5rem;
  color: var(--border-color);
  margin-bottom: 12px;
}

/* ==========================================================================
   Filter Toolbars & Search Controls
   ========================================================================== */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box-wrapper {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.search-box-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 9px 12px 9px 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.84rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.84rem;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

/* ==========================================================================
   Forms & Input Controls
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-label .required {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 0.88rem;
  color: var(--text-dark);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-control:hover:not(:focus) {
  border-color: #93c5fd;
}

.form-control:focus {
  border-color: var(--primary-600);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.18);
}

.form-control::placeholder {
  color: #94a3b8;
  opacity: 0.85;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.input-help-text {
  font-size: 0.74rem;
  color: var(--text-light);
}

/* Upload Box & Automatic Compression UI */
.upload-dropzone {
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.upload-dropzone:hover {
  border-color: var(--primary-600);
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.upload-dropzone.drag-active {
  border-color: #2563eb;
  background: #e0edff;
  transform: scale(1.01);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.upload-icon {
  font-size: 2.2rem;
  color: var(--primary-600);
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.upload-dropzone:hover .upload-icon {
  transform: translateY(-2px) scale(1.06);
}

.upload-preview-container {
  margin-top: 14px;
  position: relative;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.upload-preview-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 2px solid #bfdbfe;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Compression Loading Spinner & Info Box */
.compression-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 12px;
}

.compression-loading-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(29, 78, 216, 0.2);
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.compression-info-card {
  margin-top: 12px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
  animation: fadeIn 0.3s ease;
}

.compression-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.compression-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #10b981;
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.compression-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  font-size: 0.74rem;
}

.compression-stat-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d1fae5;
  border-radius: var(--radius-md);
  padding: 6px 8px;
}

.compression-stat-label {
  color: #047857;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.compression-stat-value {
  font-weight: 800;
  color: #064e3b;
  font-size: 0.82rem;
  margin-top: 1px;
}

.compression-stat-original {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 600;
}


/* ==========================================================================
   Tabs Navigation
   ========================================================================== */
.tabs-container {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  gap: 24px;
  margin-bottom: 24px;
}

.tab-nav-btn {
  background: transparent;
  border: none;
  padding: 10px 4px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.tab-nav-btn:hover {
  color: var(--primary-700);
}

.tab-nav-btn.active {
  color: var(--primary-700);
  font-weight: 700;
}

.tab-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--primary-700);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Bill Breakdown Component & Price Summaries
   ========================================================================== */
.bill-breakdown-card {
  background: #f4f8fe;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 16px 0;
}

.bill-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.84rem;
  border-bottom: 1px dashed var(--border-light);
}

.bill-line-item:last-child {
  border-bottom: none;
}

.bill-line-item.discount-item {
  color: #0284c7;
  font-weight: 600;
}

.bill-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 2px solid var(--border-color);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-900);
}

/* VA Simulation Box */
.va-box {
  background: linear-gradient(135deg, #163261 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
  position: relative;
  overflow: hidden;
}

.va-box::after {
  content: 'SIMPEL-IF';
  position: absolute;
  right: -10px;
  bottom: -15px;
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.va-bank-title {
  font-size: 0.82rem;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.va-number-display {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  font-family: var(--font-mono);
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.copy-va-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: var(--font-family);
  font-weight: 600;
}

.copy-va-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Audit Trail Timeline
   ========================================================================== */
.audit-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #f4f8fe;
  border-radius: var(--radius-lg);
  border: 1px solid #e0edfd;
  border-left: 4px solid var(--primary-600);
}

.audit-icon {
  font-size: 1.25rem;
  color: var(--primary-700);
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
}

.audit-details {
  flex: 1;
}

.audit-action-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark);
}

.audit-meta {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 2px;
}

.audit-changes-box {
  margin-top: 6px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   Student Portal User-Friendly Components
   ========================================================================== */
.student-welcome-hero {
  background: linear-gradient(135deg, #163261 0%, #1d4ed8 55%, #0284c7 100%);
  color: #ffffff;
  border-radius: var(--radius-2xl);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.25);
  margin-bottom: 24px;
}

.student-welcome-hero::after {
  content: '🎓';
  position: absolute;
  right: 20px;
  bottom: -15px;
  font-size: 8rem;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-10deg);
}

.student-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.student-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.student-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
}

.student-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.payment-method-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.payment-method-card {
  border: 2px solid var(--border-light);
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: var(--primary-500);
  background: #f8fafc;
}

.payment-method-card.active {
  border-color: var(--primary-700);
  background: #eff6ff;
  box-shadow: 0 0 0 1px var(--primary-700);
}

.faq-accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-header {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.86rem;
  color: #1e3a8a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f8fe;
  user-select: none;
}

.faq-accordion-header:hover {
  background: #eff6ff;
  color: var(--primary-700);
}

.faq-accordion-body {
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  display: none;
}

.faq-accordion-body.open {
  display: block;
}

.helpdesk-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* Kalender Akademik Component Styles */
.event-timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.calendar-swipe-zone {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
  cursor: grab;
}

.calendar-swipe-zone.is-swiping {
  cursor: grabbing !important;
  transition: none !important;
}

.calendar-cell {
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
}

.calendar-cell:hover {
  background: #f8fafc !important;
  border-color: var(--primary-300) !important;
}

.calendar-cell.today-cell:hover {
  background: #dbeafe !important;
}

.cal-mini-event {
  transition: transform 0.15s, box-shadow 0.15s;
}

.cal-mini-event:hover {
  transform: scale(1.02);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Floating Live Swipe Indicator Pill */
.cal-swipe-floating-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: fadeIn 0.15s ease;
  letter-spacing: -0.2px;
}

.cal-swipe-floating-indicator.swipe-left {
  right: 24px;
}

.cal-swipe-floating-indicator.swipe-right {
  left: 24px;
}

/* Side navigation quick hover buttons */
.cal-side-nav-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--primary-800);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.85;
}

.cal-side-nav-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  background: var(--primary-800);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

.cal-side-nav-btn.btn-side-prev {
  left: -14px;
}

.cal-side-nav-btn.btn-side-next {
  right: -14px;
}

@media (max-width: 768px) {
  .cal-side-nav-btn {
    display: none; /* On mobile use native touch swipe */
  }
  .calendar-cell {
    min-height: 60px !important;
    padding: 3px !important;
  }
  .cal-mini-event {
    font-size: 0.56rem !important;
    padding: 1px 2px !important;
    border-radius: 2px !important;
  }
  .calendar-matrix-wrapper {
    min-width: 100% !important;
  }
}



/* ==========================================================================
   Modern Aesthetic Enhancements & Micro-Interactions
   ========================================================================== */

/* Shimmer Keyframe Animation */
@keyframes shimmerSweep {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { transform: scale(1.04); opacity: 0.9; box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.glass-dark {
  background: rgba(15, 30, 60, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* VIP Registration Card */
.vip-register-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 60%, #e0e7ff 100%);
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-register-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 8px 25px -4px rgba(37, 99, 235, 0.22);
}

.vip-register-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  pointer-events: none;
}

/* Shimmer Button Effect */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 40px;
  height: 200%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-shimmer:hover::after {
  opacity: 1;
  animation: shimmerSweep 1.2s infinite ease-in-out;
}

/* Gradient Text Utilities */
.gradient-text-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #065f46 0%, #059669 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulsing Status Dot */
.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGlow 2s infinite;
}

.pulsing-dot-green {
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

.pulsing-dot-blue {
  background-color: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}

/* Micro-Interaction Hover Cards */
.interactive-hover-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-hover-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
}

/* ==========================================================================
   Aesthetic Ornaments & Embellishments
   ========================================================================== */
.card-academic-trim {
  position: relative;
  overflow: hidden;
}

.card-academic-trim::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #059669 0%, #10b981 25%, #f59e0b 50%, #2563eb 75%, #059669 100%);
}

.card-islamic-trim {
  position: relative;
  overflow: hidden;
}

.card-islamic-trim::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #065f46 0%, #10b981 35%, #f59e0b 70%, #d97706 100%);
}

.ornament-corner-star {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 90px;
  height: 90px;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none'%3E%3Crect x='20' y='20' width='60' height='60' stroke='%23059669' stroke-width='2'/%3E%3Crect x='20' y='20' width='60' height='60' transform='rotate(45 50 50)' stroke='%23d97706' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='18' stroke='%2310b981' stroke-width='1.8'/%3E%3Ccircle cx='50' cy='50' r='6' fill='%23d97706'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .ornament-corner-star {
  opacity: 0.10;
  transform: rotate(15deg) scale(1.06);
}

.ornament-pinstripe {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.25) 20%, rgba(217, 119, 6, 0.4) 50%, rgba(16, 185, 129, 0.25) 80%, transparent);
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ornament-pinstripe::after {
  content: '۞';
  position: absolute;
  background: var(--bg-surface);
  padding: 0 10px;
  font-size: 0.95rem;
  color: var(--islamic-gold-600);
  line-height: 1;
}

.ornament-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.75);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.ornament-feature-chip:hover {
  transform: translateY(-1px);
  border-color: var(--islamic-emerald-400);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}

/* Islamic Basmalah Calligraphy */
.islamic-basmalah {
  font-family: var(--font-arabic);
  font-size: 1.68rem;
  color: var(--islamic-emerald-900);
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.5px;
  margin: 6px auto 2px;
  text-shadow: 0 1px 2px rgba(6, 78, 59, 0.08);
  user-select: none;
  font-weight: 700;
  direction: rtl;
}

.islamic-basmalah-sub {
  font-size: 0.74rem;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

/* Islamic Value / Tag Badges */
.badge-islamic {
  background: var(--islamic-emerald-50);
  color: var(--islamic-emerald-800);
  border: 1px solid var(--islamic-emerald-200);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-islamic-gold {
  background: var(--islamic-gold-50);
  color: var(--islamic-gold-700);
  border: 1px solid var(--islamic-gold-200);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Islamic Doa / Quote Banner */
.islamic-quote-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #fffbeb 100%);
  border: 1px solid #a7f3d0;
  border-left: 4px solid #059669;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.04);
}

.islamic-quote-icon {
  font-size: 1.4rem;
  color: var(--islamic-gold-600);
  flex-shrink: 0;
}

.islamic-quote-text {
  font-size: 0.78rem;
  color: #064e3b;
  line-height: 1.5;
  font-weight: 600;
}

/* ==========================================================================
   Topbar Spotlight Search Trigger
   ========================================================================== */
.topbar-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.topbar-search-trigger:hover {
  background: #ffffff;
  border-color: var(--primary-400);
  color: var(--primary-800);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.topbar-search-trigger .search-icon {
  font-size: 0.88rem;
  color: var(--primary-600);
}

.topbar-search-trigger .search-placeholder {
  font-weight: 600;
}

.topbar-search-trigger .search-kbd {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-light);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Spotlight Command Palette Modal (Ctrl+K)
   ========================================================================== */
.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  animation: fadeIn 0.2s ease;
}

.spotlight-overlay.active {
  display: flex;
}

.spotlight-card {
  width: 100%;
  max-width: 660px;
  background: #ffffff;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spotlight-search-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
  background: #ffffff;
}

.spotlight-search-header .spotlight-icon {
  font-size: 1.35rem;
  color: var(--primary-600);
}

.spotlight-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-family);
  color: var(--text-dark);
  background: transparent;
}

.spotlight-input::placeholder {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
}

.spotlight-close-btn {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.spotlight-close-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.spotlight-quick-tags {
  display: flex;
  gap: 6px;
  padding: 8px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.spotlight-tag-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.spotlight-tag-btn:hover,
.spotlight-tag-btn.active {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #ffffff;
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotlight-category-header {
  font-size: 0.70rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 10px 4px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.spotlight-item:hover,
.spotlight-item.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.spotlight-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.spotlight-item.active .spotlight-item-icon {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.spotlight-item-content {
  flex: 1;
  min-width: 0;
}

.spotlight-item-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-item-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.spotlight-item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-700);
  background: #dbeafe;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.spotlight-item:hover .spotlight-item-badge,
.spotlight-item.active .spotlight-item-badge {
  opacity: 1;
}

.spotlight-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.spotlight-footer {
  padding: 10px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-light);
}

.spotlight-hint kbd {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.spotlight-brand {
  font-weight: 700;
  color: #64748b;
}

/* ==========================================================================
   Floating Help Hub Widget
   ========================================================================== */
.floating-help-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 850;
}

.floating-help-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  font-family: var(--font-family);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4), 0 0 0 3px rgba(37, 99, 235, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-help-main-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 30px -5px rgba(37, 99, 235, 0.55), 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.floating-help-main-btn .help-btn-icon {
  font-size: 1.15rem;
}

/* Guide Step Cards */
.user-guide-step-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.user-guide-step-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.help-kbd {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  z-index: 850;
  padding: 4px 10px;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  gap: 2px;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  flex: 1;
}

.mobile-nav-btn .mob-icon {
  font-size: 1.25rem;
}

.mobile-nav-btn:active,
.mobile-nav-btn.active {
  color: var(--primary-700);
}

.mobile-nav-highlight {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary-700);
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Accessibility: Font Size & High Contrast Modes
   ========================================================================== */
html.font-size-medium {
  font-size: 110%;
}

html.font-size-large {
  font-size: 120%;
}

body.high-contrast-mode {
  --text-dark: #000000;
  --text-main: #000000;
  --text-muted: #1e293b;
  --text-light: #334155;
  --border-light: #94a3b8;
  --border-color: #64748b;
  --bg-app: #e2e8f0;
}

body.high-contrast-mode .card,
body.high-contrast-mode .stat-card {
  border: 2px solid #334155 !important;
}

/* Copy Animation Pulse */
.copy-success-pulse {
  animation: copyPulse 0.7s ease;
}

@keyframes copyPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); background-color: #dcfce7 !important; }
  100% { transform: scale(1); }
}

/* Toggle Switch Widget */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
  background-color: #2563eb;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}



