:root {
  --hrms-canvas: #eef2f7;
  --hrms-surface: #ffffff;
  --hrms-border: #dce3ed;
  --hrms-text: #0f172a;
  --hrms-muted: #64748b;
  --hrms-brand: #4f46e5;
  --hrms-brand-2: #6366f1;
  --hrms-success: #16a34a;
  --hrms-warning: #d97706;
  --hrms-danger: #dc2626;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--hrms-canvas);
  color: var(--hrms-text);
}
.hrms-layout { display: flex; min-height: 100vh; }
.hrms-sidebar {
  width: 268px;
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
  color: #e0e7ff;
  padding: 24px 16px;
}
.hrms-brand { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.hrms-brand span { color: #a5b4fc; }
.hrms-sub { font-size: 0.8125rem; opacity: 0.8; margin-bottom: 28px; }
.hrms-nav a {
  display: block;
  color: #c7d2fe;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}
.hrms-nav a:hover, .hrms-nav a.active { background: rgba(255,255,255,0.12); color: #fff; }
.hrms-main { flex: 1; padding: 28px 32px; }
.hrms-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.hrms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.hrms-card {
  background: var(--hrms-surface);
  border: 1px solid var(--hrms-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.hrms-card h3 { margin: 0 0 8px; font-size: 0.8125rem; color: var(--hrms-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hrms-card .val { font-size: 1.875rem; font-weight: 800; }
.hrms-panel {
  background: var(--hrms-surface);
  border: 1px solid var(--hrms-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.hrms-panel h2 { margin: 0 0 16px; font-size: 1.0625rem; }
table.hrms-table { width: 100%; border-collapse: collapse; }
table.hrms-table th, table.hrms-table td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--hrms-border);
  font-size: 0.875rem;
}
table.hrms-table th { color: var(--hrms-muted); font-weight: 600; background: #f8fafc; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-present { background: #dcfce7; color: #166534; }
.badge-late { background: #fef3c7; color: #92400e; }
.badge-absent { background: #fee2e2; color: #991b1b; }
.badge-fp { background: #e0e7ff; color: #3730a3; }
.hrms-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--hrms-brand), var(--hrms-brand-2));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.hrms-btn-outline {
  background: white;
  border: 1px solid var(--hrms-border);
  color: var(--hrms-text);
}
.hrms-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.hrms-login-card {
  width: 100%; max-width: 440px;
  background: white; border: 1px solid var(--hrms-border);
  border-radius: 16px; padding: 36px;
  box-shadow: 0 10px 40px rgba(15,23,42,0.08);
}
.hrms-field { margin-bottom: 16px; }
.hrms-field label { display: block; margin-bottom: 6px; color: var(--hrms-muted); font-size: 0.875rem; }
.hrms-field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--hrms-border);
}
.emp-id { font-family: ui-monospace, monospace; font-weight: 700; color: var(--hrms-brand); }
