/* ══════════════════════════════════════════════════════════
   HRMS PRO THEME — Main Styles
   Font: Plus Jakarta Sans (Google Fonts)
   Design: Clean corporate with vibrant indigo accents
══════════════════════════════════════════════════════════ */

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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --secondary: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --sidebar-bg: #0f172a;
  --sidebar-w: 252px;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --subtle: #94a3b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,.12);
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* ════════════════════════════════════
   LOGIN SCREEN
════════════════════════════════════ */
.hrms-login-screen {
  display: flex;
  min-height: 100vh;
}

.hrms-login-left {
  flex: 1.1;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 50%, #312e81 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hrms-login-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.3) 0%, transparent 70%);
  pointer-events: none;
}
.hrms-login-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.2) 0%, transparent 70%);
  pointer-events: none;
}

.hrms-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  z-index: 1;
}
.hrms-brand-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15);
}
.hrms-brand-name { font-size: 20px; font-weight: 800; color: white; }
.hrms-brand-tagline { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 1px; }

.hrms-login-hero { color: white; z-index: 1; }
.hrms-login-hero h1 { font-size: 40px; font-weight: 800; margin: 0 0 12px; line-height: 1.15; }
.hrms-login-hero p { font-size: 15px; color: rgba(255,255,255,.65); margin: 0 0 32px; max-width: 360px; }
.hrms-login-features { display: flex; flex-direction: column; gap: 12px; }
.hrms-lf-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  padding: 10px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
}
.hrms-lf-item span { font-size: 18px; }

.hrms-login-right {
  flex: .9;
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
  background: white;
}

.hrms-login-box { width: 100%; max-width: 380px; }
.hrms-login-box h2 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.hrms-login-sub { color: var(--muted); margin: 0 0 28px; font-size: 14px; }

.hrms-field { margin-bottom: 16px; }
.hrms-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }

.hrms-input-wrap { position: relative; }
.hrms-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.hrms-input-wrap input {
  width: 100%;
  padding: 12px 40px 12px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.hrms-input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.hrms-pass-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; padding: 0; }

.hrms-login-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, box-shadow .15s;
  margin-top: 20px;
}
.hrms-login-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.35); }
.hrms-login-hint { text-align: center; margin-top: 16px; color: var(--subtle); }

/* ════════════════════════════════════
   APP LAYOUT
════════════════════════════════════ */
.hrms-app { display: block; }
.hrms-app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.hrms-sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform .25s ease;
}

.hrms-sidebar-top { padding: 20px 20px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.hrms-sidebar-brand { display: flex; align-items: center; gap: 10px; color: white; }
.hrms-brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(99,102,241,.8); }
.hrms-sidebar-brand span { font-size: 14px; font-weight: 700; }

.hrms-sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.hrms-sidebar-user-name { font-size: 13px; font-weight: 600; color: white; line-height: 1.2; }
.hrms-sidebar-user-role { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

.hrms-nav { flex: 1; padding: 12px 12px; }
.hrms-nav-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.25); padding: 8px 8px 4px; }
.hrms-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all .15s;
  margin-bottom: 2px;
}
.hrms-nav-item svg { flex-shrink: 0; }
.hrms-nav-item:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.hrms-nav-item.active { background: rgba(99,102,241,.2); color: #a5b4fc; border: 1px solid rgba(99,102,241,.3); }
.hrms-nav-item.active svg { color: #818cf8; }

.hrms-sidebar-bottom { padding: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.hrms-logout-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: var(--radius-sm);
  background: rgba(239,68,68,.1); color: #fca5a5;
  border: 1px solid rgba(239,68,68,.2);
  font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s;
}
.hrms-logout-btn:hover { background: rgba(239,68,68,.2); }

/* ── Main Area ── */
.hrms-main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ── */
.hrms-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 58px;
  display: flex; align-items: center; gap: 16px;
}
.hrms-topbar-title { font-size: 15px; font-weight: 700; flex: 1; }
.hrms-topbar-right { display: flex; align-items: center; gap: 14px; }
.hrms-topbar-date { font-size: 12px; color: var(--muted); }
.hrms-menu-btn {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hrms-menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ── Content ── */
.hrms-content { flex: 1; padding: 24px; }

/* ── Overlay (mobile) ── */
.hrms-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }

/* ════════════════════════════════════
   COMPONENTS
════════════════════════════════════ */

/* Page */
.hrms-page { max-width: 1200px; }
.hrms-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.hrms-page-header h2 { font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.hrms-page-header p { color: var(--muted); margin: 0; font-size: 13px; }

/* Card */
.hrms-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.hrms-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.hrms-card-header h3 { margin: 0; font-size: 14px; font-weight: 700; }

/* Stats */
.hrms-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.hrms-stat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
  border-left: 3px solid var(--accent, #6366f1);
  transition: box-shadow .2s, transform .2s;
}
.hrms-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.hrms-stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hrms-stat-value { font-size: 22px; font-weight: 800; line-height: 1; }
.hrms-stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* Grid */
.hrms-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* Table */
.hrms-table-wrap { overflow-x: auto; }
.hrms-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hrms-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.hrms-table td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; }
.hrms-table tbody tr:hover { background: #f8fafc; }
.hrms-table tbody tr:last-child td { border-bottom: none; }

/* Table toolbar */
.hrms-table-toolbar { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.hrms-search-wrap { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 320px; background: var(--bg); border-radius: var(--radius-sm); padding: 8px 12px; }
.hrms-search-wrap svg { color: var(--subtle); flex-shrink: 0; }
.hrms-search-wrap input { border: none; background: none; outline: none; font-family: var(--font); font-size: 13px; width: 100%; }

/* Buttons */
.hrms-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border);
  background: white; color: var(--text);
  text-decoration: none; transition: all .15s;
}
.hrms-btn:hover { background: var(--bg); }
.hrms-btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.hrms-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.hrms-btn-success { background: var(--success); color: white; border-color: var(--success); }
.hrms-btn-sm { padding: 6px 12px; font-size: 12px; }
.hrms-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: white; cursor: pointer; color: var(--muted); transition: all .15s; }
.hrms-btn-icon:hover { background: var(--bg); color: var(--text); }
.hrms-btn-icon.hrms-btn-success { background: #ecfdf5; border-color: #bbf7d0; color: #059669; }
.hrms-btn-icon.hrms-btn-success:hover { background: #d1fae5; }
.hrms-btn-icon.hrms-btn-danger { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.hrms-btn-icon.hrms-btn-danger:hover { background: #fecaca; }

/* Badge */
.hrms-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }

/* Forms */
.hrms-field { margin-bottom: 14px; }
.hrms-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.hrms-field input, .hrms-field select, .hrms-field textarea,
.hrms-form-grid .hrms-field input, .hrms-form-grid .hrms-field select {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13px; color: var(--text);
  outline: none; transition: border-color .15s;
  background: white;
}
.hrms-field input:focus, .hrms-field select:focus, .hrms-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.hrms-textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 13px; resize: vertical; outline: none; color: var(--text); }
.hrms-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.hrms-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Filter bar */
.hrms-filter-bar { padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fafafa; }
.hrms-field-sm { display: flex; flex-direction: column; gap: 4px; }
.hrms-field-sm label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.hrms-field-sm input, .hrms-field-sm select { padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-family: var(--font); font-size: 13px; outline: none; }
.hrms-field-sm input:focus, .hrms-field-sm select:focus { border-color: var(--primary); }

/* Modal */
.hrms-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.hrms-modal { background: white; border-radius: 16px; width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.hrms-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.hrms-modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.hrms-modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); padding: 2px; line-height: 1; border-radius: 4px; }
.hrms-modal-close:hover { background: var(--bg); }
.hrms-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.hrms-modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Messages */
.hrms-msg { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }
.hrms-msg-success { background: #f0fdf4; color: #065f46; border: 1px solid #bbf7d0; }
.hrms-msg-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Link sm */
.hrms-link-sm { font-size: 12px; color: var(--primary); text-decoration: none; font-weight: 600; }
.hrms-link-sm:hover { text-decoration: underline; }

/* Tab buttons */
.hrms-tab-btn { display: inline-flex; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid transparent; transition: all .15s; }
.hrms-tab-btn:hover { background: var(--bg); color: var(--text); }
.hrms-tab-btn.active { background: var(--primary-light); color: var(--primary); border-color: #c7d2fe; }

/* Empty state */
.hrms-empty-state { padding: 32px; text-align: center; color: var(--subtle); font-size: 13px; }
.hrms-empty-screen { text-align: center; padding: 80px 20px; }
.hrms-empty-screen-icon { font-size: 56px; margin-bottom: 16px; }
.hrms-empty-screen h3 { font-size: 20px; margin: 0 0 8px; }
.hrms-empty-screen p { color: var(--muted); font-size: 14px; }

/* Greeting banner */
.hrms-greeting-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: white; padding: 22px 24px; border-radius: var(--radius);
  margin-bottom: 20px;
}
.hrms-greeting-banner h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.hrms-greeting-banner p { margin: 0; opacity: .75; font-size: 13px; }

/* Attendance list (dashboard) */
.hrms-att-list { padding: 4px 0; }
.hrms-att-row-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f1f5f9; }
.hrms-att-row-item:last-child { border-bottom: none; }
.hrms-att-row-info { flex: 1; }
.hrms-att-row-name { font-size: 13px; font-weight: 600; }
.hrms-att-row-dept { font-size: 11px; color: var(--subtle); }
.hrms-att-row-times { display: flex; gap: 6px; }
.hrms-time-chip { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; font-family: var(--mono); }
.hrms-time-chip.in { background: #f0fdf4; color: #059669; }
.hrms-time-chip.out { background: #fee2e2; color: #dc2626; }

/* Timeline (dashboard today status) */
.hrms-today-status { padding: 16px; }
.hrms-status-timeline { display: flex; gap: 0; position: relative; margin-bottom: 16px; }
.hrms-status-timeline::before { content: ''; position: absolute; top: 12px; left: 12px; right: 12px; height: 2px; background: var(--border); }
.hrms-tl-item { flex: 1; text-align: center; position: relative; }
.hrms-tl-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--border); border: 3px solid white; box-shadow: 0 0 0 2px var(--border); margin: 0 auto 8px; transition: background .3s; }
.hrms-tl-item.done .hrms-tl-dot { background: var(--success); box-shadow: 0 0 0 2px #bbf7d0; }
.hrms-tl-label { font-size: 11px; color: var(--muted); font-weight: 600; }
.hrms-tl-time { font-size: 12px; font-family: var(--mono); font-weight: 600; color: var(--text); margin-top: 2px; }
.hrms-hours-summary { display: flex; gap: 24px; padding: 10px 14px; background: #f0fdf4; border-radius: 8px; font-size: 13px; }
.hrms-hours-summary span { color: var(--muted); }
.hrms-hours-summary strong { color: var(--success); margin-left: 4px; }
.hrms-live-badge { background: #f0fdf4; color: #059669; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; text-align: center; }

/* Clock panel (attendance page) */
.hrms-clock-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.hrms-clock-display { text-align: center; padding: 32px 20px 20px; background: linear-gradient(135deg, #0f172a, #1e3a8a); color: white; }
.hrms-clock-time { font-size: 56px; font-weight: 800; font-family: var(--mono); letter-spacing: 2px; }
.hrms-clock-date { font-size: 14px; opacity: .6; margin-top: 6px; }
.hrms-clock-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--border); }
.hrms-clock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 20px 12px;
  background: white; border: none; border-right: 1px solid var(--border);
  cursor: pointer; font-family: var(--font); transition: background .15s;
}
.hrms-clock-btn:last-child { border-right: none; }
.hrms-clock-btn:hover:not(:disabled) { background: #f8fafc; }
.hrms-clock-btn:disabled { opacity: .4; cursor: not-allowed; }
.hrms-clock-btn.done { background: #f0fdf4; }
.hrms-clock-btn.active { background: #eff6ff; }
.hrms-clock-btn-icon { font-size: 24px; }
.hrms-clock-btn div:nth-child(2) { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); }
.hrms-clock-btn-time { font-size: 13px; font-family: var(--mono); color: var(--muted); font-weight: 600; }
.hrms-hours-strip { display: flex; gap: 0; }
.hrms-hours-strip > div { flex: 1; padding: 14px; text-align: center; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.hrms-hours-strip > div:last-child { border-right: none; }
.hrms-hours-strip span { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.hrms-hours-strip strong { font-size: 18px; font-weight: 800; color: var(--primary); font-family: var(--mono); }

/* Task cards */
.hrms-active-task-card { border: 2px solid var(--primary); }
.hrms-active-task-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px; }
.hrms-task-info h3 { margin: 0 0 8px; font-size: 16px; }
.hrms-task-info p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.hrms-complete-section { background: #f8fafc; border-radius: 10px; padding: 16px; }
.hrms-complete-section h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.hrms-task-list-emp { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.hrms-task-card-emp { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; background: #f8fafc; border-radius: 10px; border: 1px solid var(--border); }
.hrms-task-card-emp h4 { margin: 0 0 4px; font-size: 14px; }
.hrms-task-card-emp p { margin: 0; color: var(--muted); font-size: 12px; }
.hrms-task-card-action { flex-shrink: 0; }

/* ID card picker */
.hrms-emp-pick-list { padding: 8px; }
.hrms-emp-pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); transition: background .15s; margin-bottom: 4px; border: 1px solid transparent; }
.hrms-emp-pick:hover { background: var(--bg); }
.hrms-emp-pick.active { background: var(--primary-light); border-color: #c7d2fe; }

/* Info rows (settings) */
.hrms-info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.hrms-info-row:last-child { border-bottom: none; }

/* Spinner */
.hrms-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Admin extra CSS */
.hrms-admin-extra .hrms-card { border-radius: 8px; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .hrms-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hrms-sidebar { transform: translateX(-100%); }
  .hrms-sidebar.open { transform: translateX(0); }
  .hrms-main-area { margin-left: 0; }
  .hrms-menu-btn { display: flex; }
  .hrms-overlay.show { display: block; }
  .hrms-login-screen { flex-direction: column; }
  .hrms-login-left { padding: 32px 24px; min-height: 260px; }
  .hrms-login-right { padding: 32px 24px; }
  .hrms-login-hero h1 { font-size: 28px; }
  .hrms-clock-buttons { grid-template-columns: 1fr 1fr; }
  .hrms-stats-row { grid-template-columns: 1fr 1fr; }
  .hrms-active-task-body { grid-template-columns: 1fr; }
  .hrms-form-grid { grid-template-columns: 1fr; }
  .hrms-content { padding: 14px; }
  .hrms-topbar { padding: 0 14px; }
  .hrms-hours-strip { flex-direction: column; }
}

@media (max-width: 480px) {
  .hrms-stats-row { grid-template-columns: 1fr; }
  .hrms-clock-time { font-size: 40px; }
  .hrms-greeting-banner { flex-direction: column; gap: 12px; align-items: flex-start; }
}
