:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --success: #059669;
  --success-light: #ecfdf5;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #d97706;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 36px;
  width: auto;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* Tabs */
.nav-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.tab-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* Main Layout */
.main-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  width: 100%;
}

.app-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 1100px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards & Sections */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.card-title-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Controls */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
}

.form-control {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

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

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

.input-suffix span {
  position: absolute;
  left: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

.input-suffix input {
  padding-left: 28px;
}

/* Toggles */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  display: flex;
  flex-direction: column;
}

.toggle-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

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

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background: #047857;
}

.btn-secondary {
  background: #ffffff;
  color: #334155;
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #f1f5f9;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

/* Live Summary Banner */
.summary-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-pill {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.summary-pill-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-pill-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.summary-pill.highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
}

.summary-pill.highlight .summary-pill-value {
  color: #1d4ed8;
}

/* Preview Paper Sheet */
.preview-pane-container {
  position: sticky;
  top: 75px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.preview-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.paper-sheet {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 30px 24px 20px 24px;
  box-shadow: var(--shadow-lg);
  min-height: 580px;
  color: #000000;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 10pt;
  line-height: 1.25;
}

/* Payslip Paper Styles matching template */
.paper-header {
  text-align: center;
  margin-bottom: 8px;
}

.paper-logo {
  max-width: 120px;
  max-height: 48px;
  display: block;
  margin: 0 auto 6px auto;
}

.paper-sheet {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 36px 32px 28px 32px;
  box-shadow: var(--shadow-sm);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #000000;
  font-size: 10pt;
  line-height: 1.5;
}

.paper-company-name {
  font-size: 15pt;
  font-weight: bold;
  color: #000000;
  margin-bottom: 5px;
  line-height: 1.5;
  letter-spacing: 0.1px;
}

.paper-company-address {
  font-size: 8pt;
  color: #333333;
  line-height: 1.5;
  margin: 0 auto 8px auto;
  max-width: 90%;
}

.paper-title {
  font-size: 13.5pt;
  font-weight: bold;
  text-decoration: underline;
  margin: 8px 0 14px 0;
  line-height: 1.5;
  text-transform: uppercase;
}

.paper-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 10pt;
  line-height: 1.5;
}

.paper-info-table tr {
  height: 28px;
}

.paper-info-table td {
  padding: 2px 3px;
  border: none;
  vertical-align: middle;
  line-height: 1.5;
}

.paper-info-label {
  width: 23.3%;
  white-space: nowrap;
}

.paper-info-val {
  width: 30.6%;
}

.paper-info-label-2 {
  width: 19.4%;
  white-space: nowrap;
}

.paper-info-val-2 {
  width: 26.7%;
}

.paper-info-val-full {
  width: 76.7%;
  white-space: nowrap;
}

.paper-salary-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid #000000;
  margin-top: 6px;
  margin-bottom: 16px;
  box-sizing: border-box;
  line-height: 1.5;
}

.paper-salary-table th,
.paper-salary-table td {
  border: 1px solid #000000 !important;
  height: 34px;
  padding: 4px 8px;
  vertical-align: middle;
  box-sizing: border-box;
  line-height: 1.5;
}

.paper-salary-table th {
  font-size: 10pt;
  font-weight: bold;
}

.paper-salary-table td {
  font-size: 9pt;
}

.paper-salary-table .amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 15.5%;
}

.paper-salary-table .lbl {
  text-align: left;
  width: 34.5%;
}

.paper-salary-table .row-bold td {
  font-size: 10pt;
  font-weight: bold;
}

.paper-contrib {
  margin-top: 18px;
  font-size: 10pt;
  line-height: 1.5;
}

.paper-disclaimer {
  margin-top: 40px;
  text-align: center;
  font-size: 8.5pt;
  color: #666666;
  font-style: italic;
  border-top: 1px dashed #d1d5db;
  padding-top: 10px;
  line-height: 1.5;
}

/* Batch Upload View */
.batch-container {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary);
  background: #eff6ff;
}

.dropzone-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Alerts */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: none;
}

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

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

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

/* History View Styles */
.history-container {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.history-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.history-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.history-card-emp {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.history-card-id {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 3px;
}

.history-card-month {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
}

.history-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  margin: 8px 0 12px 0;
}

.history-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.history-stat-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 2px;
}

.history-stat-val.net {
  color: var(--primary);
  font-weight: 700;
}

.history-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.history-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Print Rules - Precise Single-Page Print */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm 10mm 12mm;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    font-size: 10pt;
  }

  /* Completely hide all UI elements outside the paper */
  .app-header,
  .form-column,
  .preview-toolbar,
  .history-container,
  .batch-container,
  .alert,
  #batch-view,
  #history-view,
  .summary-bar {
    display: none !important;
  }

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

  .app-grid {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .preview-column {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .preview-pane-container {
    position: static !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #payslip-paper {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 1px !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: avoid !important;
    box-sizing: border-box !important;
  }

  .paper-header {
    margin-bottom: 10px !important;
  }

  .paper-logo {
    max-width: 125px !important;
    max-height: 48px !important;
    margin: 0 auto 6px auto !important;
  }

  .paper-company-name {
    font-size: 15pt !important;
    margin-bottom: 4px !important;
    line-height: 1.5 !important;
  }

  .paper-company-address {
    font-size: 8pt !important;
    margin-bottom: 6px !important;
    line-height: 1.5 !important;
  }

  .paper-title {
    font-size: 13pt !important;
    margin: 6px 0 12px 0 !important;
    line-height: 1.5 !important;
  }

  .paper-info-table {
    margin-bottom: 12px !important;
    font-size: 9.5pt !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
  }

  .paper-info-table tr {
    height: 26px !important;
  }

  .paper-info-table td {
    padding: 2px 3px !important;
    line-height: 1.5 !important;
  }

  .paper-salary-table {
    width: 100% !important;
    margin-bottom: 12px !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    border: 1px solid #000000 !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
  }

  .paper-salary-table th,
  .paper-salary-table td {
    border: 1px solid #000000 !important;
    height: 32px !important;
    padding: 3px 6px !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
  }

  .paper-salary-table .lbl {
    width: 34.5% !important;
  }

  .paper-salary-table .amt {
    width: 15.5% !important;
  }

  .paper-contrib {
    margin-top: 14px !important;
    font-size: 10pt !important;
    line-height: 1.5 !important;
  }

  .paper-footer {
    margin-top: 36px !important;
    line-height: 1.5 !important;
  }
}

/* ==========================================================================
   AUTHENTICATION & LOGIN PAGE STYLES
   ========================================================================== */

.login-body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
  animation: loginFadeIn 0.4s ease-out;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  padding: 36px 32px;
}

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

.login-logo {
  height: 46px;
  width: auto;
  margin-bottom: 12px;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.4px;
  margin-bottom: 2px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.login-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.login-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.login-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-field {
  margin-bottom: 16px;
}

.login-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.login-input {
  width: 100%;
  height: 44px;
  padding: 8px 40px 8px 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1e293b;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

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

.login-input::placeholder {
  color: #94a3b8;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s;
}

.password-toggle-btn:hover {
  color: #475569;
}

.password-toggle-btn.active {
  color: var(--primary);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.remember-label input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--primary);
}

.btn-login-submit {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-login-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.demo-creds-container {
  margin-top: 24px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.demo-creds-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.demo-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s ease;
}

.demo-chip:hover {
  border-color: var(--primary);
  background: #eff6ff;
}

.chip-role {
  font-weight: 700;
  color: #1e293b;
}

.chip-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #64748b;
}

.login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
}

/* User Profile Badge in Header */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  margin-left: 6px;
}

.user-avatar {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #dc2626;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

