@import url("https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap");

/* ========================================
   🎨 CSS VARIABLES
   ======================================== */
:root {
  --primary-color: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary-color: #64748b;
  --success-color: #059669;
  --warning-color: #d97706;
  --danger-color: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

/* ========================================
   🌐 GLOBAL STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Sarabun", sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3f4f6 100%);
  min-height: 100vh;
  padding: 20px;
  color: var(--gray-900);
}

/* ========================================
   📝 LOGIN PAGE
   ======================================== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
  padding: 50px;
  width: 100%;
  max-width: 480px;
  border-top: 4px solid var(--primary-color);
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-header h1,
.login-header h2 {
  color: var(--primary-color);
  font-size: 24px !important;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-header p {
  color: var(--gray-500);
  font-size: 15px;
}

.login-info {
  margin-top: 30px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  font-size: 14px;
  color: var(--gray-700);
}

.login-info p {
  margin: 8px 0;
}

.login-info strong {
  color: var(--primary-color);
}

/* ========================================
   📊 DASHBOARD
   ======================================== */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

.navbar {
  background: white;
  border-radius: 8px;
  padding: 20px 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.user-info {
  text-align: right;
  padding: 10px 20px;
  background: var(--gray-50);
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

.user-info .name {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 15px;
}

.user-info .role {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 3px;
}

/* ========================================
   📝 FORM STYLES
   ======================================== */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  font-family: "Sarabun", sans-serif;
  transition: all 0.2s;
  background: white;
  color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary-light);
}

.form-group input[readonly] {
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: not-allowed;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Radio Options */
.radio-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.radio-option:hover {
  border-color: #1e40af;
  background: rgba(30, 64, 175, 0.02);
}

.radio-option input[type="radio"] {
  margin-right: 6px;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.radio-option span {
  flex: 1;
  font-size: 14px;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.radio-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

/* ========================================
   🔘 BUTTON STYLES
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: "Sarabun", sans-serif;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Success Button */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 8px 16px;
  font-size: 13px;
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-success:active {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 8px 16px;
  font-size: 13px;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-danger:active {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Warning Button */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.4);
}

/* Small Button */
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* Disabled State */
.btn-disabled,
.btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover,
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.no-permission {
  color: #94a3b8;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Action Buttons Container */
.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   🎴 CARD STYLES
   ======================================== */
.card {
  background: white;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
}

.card-header {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================================
   📊 STATS CARDS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.stat-icon.primary {
  background: #dbeafe;
  color: var(--primary-color);
}
.stat-icon.success {
  background: #d1fae5;
  color: var(--success-color);
}
.stat-icon.warning {
  background: #fef3c7;
  color: var(--warning-color);
}
.stat-icon.danger {
  background: #fee2e2;
  color: var(--danger-color);
}

.stat-info {
  flex: 1;
}

.stat-info h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.stat-info p {
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   📋 TABLE STYLES
   ======================================== */
.table-container {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

table thead {
  background: var(--primary-color);
}

table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 14px;
}

table tbody tr {
  transition: all 0.2s;
}

table tbody tr:hover {
  background: var(--gray-50);
}

table tbody tr:last-child td {
  border-bottom: none;
}

/* Highlight Row */
.highlight-row {
  background-color: #fff3cd !important;
}

/* ========================================
   🎯 BADGE STYLES
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Notification Badge */
.badge.notification-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  animation: pulse 2s infinite;
}

/* Status Badges */
.badge-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-approved1 {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-approved2 {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 4px;
}

.badge-info {
  background-color: #17a2b8;
  color: #fff;
}

.badge-NotAnApprover {
  background: #d1fae5;
  color: #ffd95b;
  border: 1px solid #fff0bf;
}

/* Role Badges */
.role-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.role-badge.employee {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
}

.role-badge.head {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.role-badge.manager {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #5b21b6;
}

.role-badge.hrstaff {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.role-badge.hrhead {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #9f1239;
}

/* ========================================
   📭 EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #94a3b8;
}

.empty-state .icon,
.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.4;
}

.empty-state p,
.empty-state-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
  margin: 0;
}

/* ========================================
   ⏳ LOADING STATES
   ======================================== */
.loading-container {
  text-align: center;
  padding: 40px;
  color: var(--gray-500);
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

/* ========================================
   📅 DATE TIME PICKER
   ======================================== */
.datetime-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.time-select-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.time-select-group select {
  flex: 1;
}

.time-separator {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  padding: 0 4px;
}

.duration-display {
  background: #dbeafe !important;
  border: 2px dashed var(--primary-color) !important;
  color: var(--primary-color);
  font-weight: 600;
  text-align: center;
  font-size: 15px;
}

/* ========================================
   🔍 FILTER SECTION
   ======================================== */
.filter-section {
  background: var(--gray-50);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.export-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ========================================
   📊 STATS SUMMARY
   ======================================== */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.summary-card {
  background: white;
  padding: 18px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
}

.summary-card.warning {
  border-left-color: var(--warning-color);
}
.summary-card.success {
  border-left-color: var(--success-color);
}
.summary-card.danger {
  border-left-color: var(--danger-color);
}

.summary-card h4 {
  font-size: 24px;
  margin-bottom: 5px;
  color: var(--gray-900);
  font-weight: 700;
}

.summary-card p {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

/* ========================================
   📈 DEPARTMENT CHART
   ======================================== */
.dept-chart {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}

.dept-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.dept-item:last-child {
  border-bottom: none;
}

.dept-bar {
  flex: 1;
  height: 32px;
  background: var(--gray-100);
  border-radius: 6px;
  margin: 0 15px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.dept-bar-fill {
  height: 100%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: white;
  font-weight: 600;
  font-size: 13px;
}

/* ========================================
   ✅ APPROVAL PAGE STYLES
   ======================================== */
.approval-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.approval-box {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.approval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.approval-header h1 {
  margin: 0;
  font-size: 28px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-info {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  border: 1px solid #ffc107;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: start;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.alert-info strong {
  color: #856404;
}

.approval-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.approval-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.approval-table thead th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.approval-table thead th:first-child {
  border-top-left-radius: 12px;
}

.approval-table thead th:last-child {
  border-top-right-radius: 12px;
}

.approval-table tbody tr {
  background: white;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f1f5f9;
}

.approval-table tbody tr:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.approval-table tbody tr:last-child {
  border-bottom: none;
}

.approval-table td {
  padding: 16px 12px;
  vertical-align: middle;
}

.user-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
  margin-bottom: 4px;
}

.user-detail {
  color: #64748b;
  font-size: 13px;
}

.date-display {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

/* ========================================
   🎨 MENU CARD (Dashboard)
   ======================================== */
.menu-card {
  position: relative;
  background: white;
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.menu-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.menu-card h3 {
  margin: 0;
  font-size: 18px;
  color: #1e293b;
  text-align: center;
}

.menu-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* ========================================
   ✨ ANIMATIONS
   ======================================== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   📱 RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .navbar {
    padding: 15px 20px;
  }

  .navbar-brand {
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
  }

  .navbar-user {
    width: 100%;
    justify-content: space-between;
  }

  .card {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 20px;
  }

  table {
    font-size: 13px;
  }

  table th,
  table td {
    padding: 10px 12px;
  }

  .login-box {
    padding: 35px 25px;
  }

  .login-header h1,
  .login-header h2 {
    font-size: 22px;
  }

  .btn {
    padding: 10px 20px;
  }

  .radio-grid,
  .radio-grid-3 {
    grid-template-columns: 1fr;
  }

  .approval-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .approval-table {
    font-size: 13px;
  }

  .approval-table thead th,
  .approval-table td {
    padding: 10px 8px;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-success,
  .btn-danger {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .stat-info h3 {
    font-size: 28px;
  }

  .datetime-group {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   🖱️ SCROLLBAR STYLES
   ======================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-700);
}

/* ========================================
   🖨️ PRINT STYLES
   ======================================== */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .navbar,
  .btn,
  .filter-section,
  .export-buttons {
    display: none !important;
  }

  .card {
    box-shadow: none;
    page-break-inside: avoid;
    border: 1px solid #ddd;
  }

  table thead {
    background: #1e40af !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ========================================
   🎨 UTILITY CLASSES
   ======================================== */
hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 20px 0;
}

.text-primary {
  color: var(--primary-color);
}
.text-success {
  color: var(--success-color);
}
.text-warning {
  color: var(--warning-color);
}
.text-danger {
  color: var(--danger-color);
}
.text-muted {
  color: var(--gray-500);
}

.bg-primary {
  background: var(--primary-color);
}
.bg-gray-50 {
  background: var(--gray-50);
}
.bg-gray-100 {
  background: var(--gray-100);
}

small {
  font-size: 12px;
  color: var(--gray-500);
}

strong {
  font-weight: 600;
  color: var(--gray-900);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

a.register-btn:hover {
  background-color: #c6f6d5;
  color: #22543d;
}

/* ========================================
   🔐 PASSWORD RESET & CHANGE PAGES
   ======================================== */

/* Timer Box */
.timer-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.timer-text {
  font-size: 18px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 8px;
}

.timer-countdown {
  font-size: 36px;
  font-weight: 700;
  color: #b45309;
  margin-top: 10px;
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 10px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.password-strength-bar {
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
}

.strength-weak {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  width: 33%;
}

.strength-medium {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  width: 66%;
}

.strength-strong {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  width: 100%;
}

/* Password Input with Toggle */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 50px !important;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  user-select: none;
  transition: all 0.2s;
  z-index: 10;
  opacity: 0.6;
}

.password-toggle:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
  opacity: 0.5;
  transform: translateY(-50%) scale(0.95);
}

/* Match & Strength Text */
#matchText,
#strengthText {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  display: block;
  transition: all 0.3s;
  padding: 4px 0;
}

/* Security Info Box */
.security-info {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 20px;
  display: flex;
  align-items: start;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.security-info-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.security-info-content {
  flex: 1;
}

.security-info-content strong {
  color: #075985;
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.security-info-content ul,
.security-info-content ol {
  margin: 0;
  padding-left: 20px;
  color: #0c4a6e;
}

.security-info-content li {
  margin: 6px 0;
  line-height: 1.7;
}

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-left: 6px solid #f59e0b;
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 15px;
  display: flex;
  align-items: start;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.warning-box-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.warning-box-content {
  flex: 1;
  color: #92400e;
  font-weight: 500;
}

/* Success Box */
.success-box {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #10b981;
  border-left: 6px solid #10b981;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: start;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.success-box-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.success-box-content {
  flex: 1;
  color: #065f46;
  font-weight: 500;
}

/* Error Box */
.error-box {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 2px solid #ef4444;
  border-left: 6px solid #ef4444;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: start;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.error-box-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.error-box-content {
  flex: 1;
  color: #991b1b;
  font-weight: 500;
}

/* ========================================
   📱 RESPONSIVE - TABLET (768px)
   ======================================== */

@media (max-width: 768px) {
  /* Timer Box */
  .timer-box {
    padding: 12px 16px;
    margin-bottom: 20px;
  }

  .timer-text {
    font-size: 16px;
  }

  .timer-countdown {
    font-size: 30px;
    margin-top: 8px;
  }

  /* Password Toggle */
  .password-toggle {
    right: 12px;
    font-size: 18px;
  }

  .password-input-wrapper input {
    padding-right: 45px !important;
  }

  /* Info Boxes */
  .security-info,
  .warning-box,
  .success-box,
  .error-box {
    padding: 14px 16px;
    font-size: 14px;
    gap: 12px;
  }

  .security-info-icon,
  .warning-box-icon,
  .success-box-icon,
  .error-box-icon {
    font-size: 24px;
  }

  .security-info-content ul,
  .security-info-content ol,
  .login-info ul,
  .login-info ol {
    padding-left: 18px;
    font-size: 13px;
  }

  .security-info-content li,
  .login-info li {
    margin: 5px 0;
    line-height: 1.6;
  }

  /* Login Box */
  .login-box {
    padding: 30px 20px;
    margin: 10px;
    max-width: 95%;
  }

  .login-header h1 {
    font-size: 22px !important;
  }

  .login-header p {
    font-size: 14px;
  }

  /* Form Elements */
  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 11px 12px;
    font-size: 14px;
  }

  /* Buttons */
  .btn {
    padding: 11px 20px;
    font-size: 14px;
  }

  /* Match Text */
  #matchText,
  #strengthText {
    font-size: 12px;
  }
}

/* ========================================
   📱 RESPONSIVE - MOBILE (480px)
   ======================================== */

@media (max-width: 480px) {
  /* Timer */
  .timer-box {
    padding: 10px 14px;
    margin-bottom: 18px;
  }

  .timer-text {
    font-size: 15px;
  }

  .timer-countdown {
    font-size: 26px;
    letter-spacing: 1px;
  }

  /* Login Box */
  .login-box {
    padding: 25px 16px;
    margin: 5px;
    border-radius: 10px;
  }

  .login-header h1 {
    font-size: 20px !important;
    margin-bottom: 8px;
  }

  .login-header p {
    font-size: 13px;
  }

  /* Password Toggle */
  .password-toggle {
    right: 10px;
    font-size: 16px;
  }

  .password-input-wrapper input {
    padding-right: 40px !important;
  }

  /* Info Boxes - Stack Vertically */
  .security-info,
  .warning-box,
  .success-box,
  .error-box {
    flex-direction: column;
    text-align: center;
    padding: 12px 14px;
    gap: 10px;
  }

  .security-info-icon,
  .warning-box-icon,
  .success-box-icon,
  .error-box-icon {
    font-size: 32px;
    margin: 0 auto;
  }

  .security-info-content,
  .warning-box-content,
  .success-box-content,
  .error-box-content {
    text-align: left;
  }

  /* Lists */
  .security-info-content ul,
  .security-info-content ol,
  .login-info ul,
  .login-info ol {
    padding-left: 16px;
    font-size: 12px;
  }

  /* Form Elements */
  .form-group {
    margin-bottom: 18px;
  }

  .form-group input,
  .form-group select {
    font-size: 13px;
    padding: 10px 11px;
  }

  /* Buttons - Full Width */
  .btn {
    width: 100%;
    padding: 10px 18px;
    font-size: 14px;
    margin-top: 0;
  }

  .btn + .btn {
    margin-top: 10px;
  }

  /* HR */
  hr {
    margin: 18px 0;
  }

  /* Strength Bar */
  .password-strength {
    height: 7px;
  }

  #matchText,
  #strengthText {
    font-size: 11px;
    margin-top: 6px;
  }
}

/* ========================================
   📱 RESPONSIVE - EXTRA SMALL (360px)
   ======================================== */

@media (max-width: 360px) {
  /* Login Box */
  .login-box {
    padding: 20px 12px;
    margin: 3px;
  }

  .login-header h1 {
    font-size: 18px !important;
  }

  .login-header p {
    font-size: 12px;
  }

  /* Timer */
  .timer-countdown {
    font-size: 24px;
  }

  .timer-text {
    font-size: 14px;
  }

  /* Info Boxes */
  .security-info,
  .warning-box,
  .success-box,
  .error-box {
    padding: 10px 12px;
    font-size: 12px;
  }

  .security-info-icon,
  .warning-box-icon,
  .success-box-icon,
  .error-box-icon {
    font-size: 28px;
  }

  /* Form Elements */
  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group select {
    font-size: 13px;
    padding: 9px 10px;
  }

  .password-input-wrapper input {
    padding-right: 38px !important;
  }

  /* Buttons */
  .btn {
    font-size: 13px;
    padding: 9px 16px;
  }

  /* Lists */
  .security-info-content ul,
  .security-info-content ol,
  .login-info ul,
  .login-info ol {
    padding-left: 14px;
    font-size: 11px;
  }

  /* Strength Bar */
  .password-strength {
    height: 6px;
  }
}

/* ========================================
   💫 ANIMATIONS
   ======================================== */

/* Pulse Animation for Timer */
@keyframes pulse-warning {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transform: scale(1.02);
  }
}

.timer-box {
  animation: pulse-warning 2s ease-in-out infinite;
}

/* Shake Animation for Errors */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-8px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(8px);
  }
}

.shake-error {
  animation: shake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Fade In Up Animation */
.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar Fill Animation */
@keyframes fillProgress {
  from {
    width: 0;
  }
}

.password-strength-bar {
  animation: fillProgress 0.4s ease-out;
}

/* Success Checkmark Animation */
@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.success-box-icon {
  animation: successPulse 1s ease-in-out;
}

/* ========================================
   🎨 HOVER EFFECTS
   ======================================== */

.security-info,
.warning-box,
.success-box,
.error-box {
  transition: all 0.3s ease;
}

.security-info:hover {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.25);
  transform: translateY(-2px);
}

.warning-box:hover {
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.success-box:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

.error-box:hover {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.25);
  transform: translateY(-2px);
}

/* ========================================
   🖨️ PRINT STYLES
   ======================================== */

@media print {
  .timer-box,
  .password-toggle,
  .btn {
    display: none !important;
  }

  .login-box {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
