/* ============================================================
   People HRMS — Main Stylesheet
   Design: Industrial Precision / Deep Navy + Amber
   ============================================================ */

:root {
  --sidebar-w: 260px;
  --topbar-h: 64px;

  /* Color System */
  --navy-950: #050b1a;
  --navy-900: #0a1628;
  --navy-800: #0f2040;
  --navy-700: #1a3054;
  --navy-600: #234070;
  --navy-400: #4a6fa5;
  --navy-200: #8aa4c8;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  --green-500: #10b981;
  --green-100: #d1fae5;
  --red-500:   #ef4444;
  --red-100:   #fee2e2;
  --blue-500:  #3b82f6;
  --blue-100:  #dbeafe;
  --orange-500: #f97316;
  --orange-100: #ffedd5;
  --purple-500: #8b5cf6;
  --purple-100: #ede9fe;

  /* Sidebar */
  --sidebar-bg: var(--navy-900);
  --sidebar-border: rgba(255,255,255,0.06);
  --nav-active-bg: rgba(245,158,11,0.12);
  --nav-active-color: var(--amber-400);
  --nav-hover-bg: rgba(255,255,255,0.05);

  /* Main */
  --body-bg: var(--slate-100);
  --card-bg: var(--white);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 24px rgba(0,0,0,0.10);
  --border-color: var(--slate-200);

  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-400);

  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-sm: 6px;
  --transition: 0.18s ease;
}

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

html { font-size: 15px; }

body {
  font-family: var(--font-sans);
  background: var(--body-bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  border-right: 1px solid var(--sidebar-border);
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--sidebar-border);
}
.brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-300));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--navy-900);
  flex-shrink: 0;
}
.brand-logo {
  width: 38px; height: 38px; object-fit: contain; border-radius: 8px;
}
.brand-name {
  display: block; font-size: 1rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
}
.brand-sub {
  display: block; font-size: 0.65rem; font-weight: 500;
  color: var(--amber-400); letter-spacing: 0.12em; text-transform: uppercase;
}
.sidebar-toggle {
  margin-left: auto; background: none; border: none;
  color: var(--navy-200); cursor: pointer; font-size: 14px;
  padding: 6px; border-radius: 6px; transition: background var(--transition);
  display: none;
}
.sidebar-toggle:hover { background: var(--nav-hover-bg); }

.sidebar-nav {
  flex: 1; overflow-y: auto; padding: 12px 0;
  scrollbar-width: thin; scrollbar-color: var(--navy-700) transparent;
}

.nav-section { margin-bottom: 6px; }
.nav-label {
  display: block; font-size: 0.6rem; font-weight: 700;
  color: var(--navy-400); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 20px 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  color: var(--navy-200); font-size: 0.875rem; font-weight: 500;
  border-radius: 8px; margin: 1px 8px;
  transition: all var(--transition); position: relative;
}
.nav-item i { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item:hover { background: var(--nav-hover-bg); color: var(--white); }
.nav-item.active {
  background: var(--nav-active-bg); color: var(--nav-active-color);
}
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 60%;
  background: var(--amber-500); border-radius: 0 3px 3px 0;
}
.nav-item .badge {
  margin-left: auto; background: var(--amber-500);
  color: var(--navy-900); font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding: 14px;
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius); padding: 10px 12px;
}
.user-avatar, .user-avatar-placeholder {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
}
.user-avatar-placeholder {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-300));
  color: var(--navy-900); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.user-name { display: block; font-size: 0.8rem; font-weight: 600; color: var(--white); }
.user-role { display: block; font-size: 0.65rem; color: var(--navy-200); text-transform: capitalize; }
.logout-btn { margin-left: auto; color: var(--navy-400); font-size: 15px; transition: color var(--transition); }
.logout-btn:hover { color: var(--red-500); }

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column;
  min-height: 100vh; transition: margin-left var(--transition);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 90;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.mobile-toggle {
  display: none; background: none; border: none;
  font-size: 18px; color: var(--text-secondary); cursor: pointer;
}
.breadcrumb { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: all var(--transition);
}
.topbar-btn:hover { background: var(--slate-100); color: var(--text-primary); }

.notif-badge {
  position: absolute; top: 2px; right: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red-500); color: var(--white);
  font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.notif-wrap { position: relative; }
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 340px; background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: none; z-index: 200;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--border-color);
  font-weight: 600; font-size: 0.875rem;
}
.notif-header a { font-size: 0.75rem; color: var(--blue-500); }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100); cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--slate-50); }
.notif-item.unread { background: var(--blue-100); }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-500); margin-top: 5px; flex-shrink: 0;
}
.notif-item-title { font-size: 0.8rem; font-weight: 600; }
.notif-item-msg { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; }

.topbar-avatar, .topbar-avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  object-fit: cover;
}
.topbar-avatar-placeholder {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-300));
  color: var(--navy-900); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { padding: 24px; flex: 1; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.card-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 0.95rem; font-weight: 700; }
.card-body { padding: 20px; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  display: flex; align-items: flex-start; gap: 14px;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--card-shadow-hover); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.blue   { background: var(--blue-100); color: var(--blue-500); }
.stat-icon.green  { background: var(--green-100); color: var(--green-500); }
.stat-icon.amber  { background: rgba(245,158,11,0.12); color: var(--amber-500); }
.stat-icon.red    { background: var(--red-100); color: var(--red-500); }
.stat-icon.purple { background: var(--purple-100); color: var(--purple-500); }
.stat-icon.orange { background: var(--orange-100); color: var(--orange-500); }
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 3px; font-weight: 500; }
.stat-change { font-size: 0.72rem; margin-top: 6px; font-weight: 600; }
.stat-change.up { color: var(--green-500); }
.stat-change.down { color: var(--red-500); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  padding: 10px 14px; background: var(--slate-50);
  border-bottom: 1px solid var(--border-color); white-space: nowrap;
}
tbody td {
  padding: 12px 14px; font-size: 0.85rem;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--slate-50); }

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600;
}
.badge-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-status.active    { background: var(--green-100); color: var(--green-500); }
.badge-status.inactive  { background: var(--slate-200); color: var(--slate-600); }
.badge-status.pending   { background: rgba(245,158,11,0.12); color: var(--amber-500); }
.badge-status.approved  { background: var(--green-100); color: var(--green-500); }
.badge-status.rejected  { background: var(--red-100); color: var(--red-500); }
.badge-status.present   { background: var(--green-100); color: var(--green-500); }
.badge-status.absent    { background: var(--red-100); color: var(--red-500); }
.badge-status.late      { background: var(--orange-100); color: var(--orange-500); }
.badge-status.on_leave  { background: var(--blue-100); color: var(--blue-500); }
.badge-status.holiday   { background: var(--purple-100); color: var(--purple-500); }
.badge-status.half_day  { background: rgba(245,158,11,0.12); color: var(--amber-500); }
.badge-status.paid      { background: var(--green-100); color: var(--green-500); }
.badge-status.draft     { background: var(--slate-200); color: var(--slate-600); }
.badge-status.processed { background: var(--blue-100); color: var(--blue-500); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-label.required::after { content: ' *'; color: var(--red-500); }
.form-control {
  width: 100%; padding: 9px 12px;
  background: var(--white); border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm); font-family: var(--font-sans);
  font-size: 0.875rem; color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.72rem; color: var(--red-500); margin-top: 4px; }
.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--amber-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-400); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.btn-secondary { background: var(--slate-800); color: var(--white); }
.btn-secondary:hover { background: var(--slate-700); }
.btn-success { background: var(--green-500); color: var(--white); }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--red-500); color: var(--white); }
.btn-danger:hover { opacity: 0.9; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-color); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); border: none; background: none;
  cursor: pointer; position: relative; transition: color var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--amber-500); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--amber-500);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 90%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--border-color);
}
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--text-muted); }
.modal-body { padding: 20px; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 20px; border-top: 1px solid var(--border-color);
}
.modal-lg { max-width: 780px; }
.modal-xl { max-width: 1000px; }

/* ============================================================
   SEARCH / FILTER BAR
   ============================================================ */
.toolbar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 7px 12px; flex: 1; min-width: 220px;
}
.search-box i { color: var(--text-muted); }
.search-box input {
  border: none; outline: none; font-family: var(--font-sans);
  font-size: 0.875rem; width: 100%;
}

/* ============================================================
   EMPLOYEE AVATAR
   ============================================================ */
.emp-cell { display: flex; align-items: center; gap: 10px; }
.emp-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; background: var(--slate-200);
  flex-shrink: 0;
}
.emp-avatar-text {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--amber-500));
  color: var(--white); font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.emp-name { font-weight: 600; font-size: 0.875rem; }
.emp-code { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ============================================================
   CHARTS
   ============================================================ */
.chart-wrap { position: relative; width: 100%; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress { height: 6px; background: var(--slate-200); border-radius: 10px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 10px; transition: width 0.6s ease; }
.progress-bar.green  { background: var(--green-500); }
.progress-bar.amber  { background: var(--amber-500); }
.progress-bar.red    { background: var(--red-500); }
.progress-bar.blue   { background: var(--blue-500); }

/* ============================================================
   DASHBOARD GRID
   ============================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.dashboard-grid .full-width { grid-column: 1 / -1; }

/* ============================================================
   FILE UPLOAD
   ============================================================ */
.file-drop {
  border: 2px dashed var(--border-color); border-radius: var(--radius);
  padding: 28px; text-align: center; cursor: pointer;
  transition: all var(--transition);
}
.file-drop:hover, .file-drop.drag { border-color: var(--amber-500); background: rgba(245,158,11,0.04); }
.file-drop i { font-size: 28px; color: var(--text-muted); margin-bottom: 8px; }
.file-drop p { font-size: 0.85rem; color: var(--text-secondary); }

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-day-header {
  text-align: center; font-size: 0.7rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; padding: 6px 0;
}
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border-radius: 8px;
  font-size: 0.82rem; cursor: pointer; transition: all var(--transition);
  position: relative;
}
.cal-day:hover { background: var(--slate-100); }
.cal-day.today { background: var(--amber-500); color: var(--navy-900); font-weight: 700; }
.cal-day.holiday { background: var(--red-100); color: var(--red-500); }
.cal-day.on-leave { background: var(--blue-100); color: var(--blue-500); }
.cal-day.present { background: var(--green-100); color: var(--green-500); }
.cal-day.absent { background: var(--red-100); color: var(--red-500); }
.cal-day.other-month { color: var(--text-muted); }

/* ============================================================
   ALERTS / TOASTS
   ============================================================ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--white); border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 12px;
  min-width: 280px; border-left: 4px solid var(--green-500);
  animation: slideInRight 0.3s ease;
}
.toast.error { border-color: var(--red-500); }
.toast.warning { border-color: var(--amber-500); }
.toast.info { border-color: var(--blue-500); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--green-500); }
.toast.error i { color: var(--red-500); }
.toast.warning i { color: var(--amber-500); }
.toast.info i { color: var(--blue-500); }
.toast-msg { font-size: 0.85rem; font-weight: 500; flex: 1; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh; display: flex;
  background: var(--navy-900);
}
.login-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  position: relative; overflow: hidden;
}
.login-left::before {
  content: '';
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  top: -100px; left: -100px; border-radius: 50%;
}
.login-left-content { position: relative; z-index: 1; max-width: 420px; }
.login-left h1 {
  font-size: 3rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 16px;
}
.login-left h1 span { color: var(--amber-400); }
.login-left p { color: var(--navy-200); font-size: 1rem; line-height: 1.6; }
.login-right {
  width: 440px; display: flex; align-items: center; justify-content: center;
  background: var(--white); padding: 40px;
}
.login-form-wrap { width: 100%; max-width: 360px; }
.login-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 36px;
}
.login-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-300));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--navy-900);
}
.login-logo-text h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.login-logo-text span { font-size: 0.72rem; color: var(--text-secondary); letter-spacing: 0.12em; text-transform: uppercase; }
.login-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.02em; }
.login-sub { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .mobile-toggle { display: flex; }
  .login-left { display: none; }
  .login-right { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row.cols-2, .form-row.cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAYSLIP PRINT
   ============================================================ */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-wrapper { margin-left: 0 !important; }
  .payslip { box-shadow: none !important; border: 1px solid #ccc; }
}
.payslip-header { background: var(--navy-900); color: var(--white); padding: 24px; }
.payslip-table th { background: var(--slate-100); }
.payslip-table td, .payslip-table th { padding: 8px 12px; border: 1px solid var(--border-color); font-size: 0.85rem; }
.payslip-net { background: var(--navy-900); color: var(--white); padding: 16px 20px; border-radius: var(--radius); margin-top: 20px; }

/* ============================================================
   LOGIN PAGE FIXES
   ============================================================ */
body.login-body {
  display: block;
  background: var(--navy-900);
}
.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
}
.login-left {
  flex: 1;
  min-width: 0;
}
.login-right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 48px 40px;
  min-height: 100vh;
}
.login-form-wrap {
  width: 100%;
  max-width: 380px;
}
@media (max-width: 900px) {
  .login-page { flex-direction: column; }
  .login-left { display: none; }
  .login-right { width: 100%; min-height: 100vh; }
}
