/* ============================================================
   TaskFlow Pro — Industrial Dark Theme
   Fonts: Syne (display) + Inter (body) + JetBrains Mono (code)
   ============================================================ */

:root {
  --bg-base:        #0a0b0f;
  --bg-surface:     #111318;
  --bg-elevated:    #1a1d27;
  --bg-hover:       #1f2333;
  --border:         #242736;
  --border-bright:  #2e3347;
  --text-primary:   #e8eaf0;
  --text-secondary: #8b90a8;
  --text-muted:     #525870;
  --accent:         #6366f1;
  --accent-hover:   #5254cc;
  --accent-glow:    rgba(99,102,241,.2);
  --green:          #22d3a0;
  --yellow:         #fbbf24;
  --red:            #f87171;
  --orange:         #fb923c;
  --blue:           #38bdf8;
  --purple:         #c084fc;
  --sidebar-width:  260px;
  --topbar-h:       60px;
  --radius:         10px;
  --radius-sm:      6px;
  --radius-lg:      16px;
  --font-display:   'Syne', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --shadow:         0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:      0 8px 48px rgba(0,0,0,.6);
  --transition:     0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(99,102,241,.12), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(34,211,160,.08), transparent 30rem),
    var(--bg-base);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Sidebar ───────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, rgba(17,19,24,.98), rgba(10,11,15,.98));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--border);
}

.brand-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-text { display: flex; align-items: baseline; gap: 6px; }
.brand-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.brand-pro {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: .05em;
}

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
  display: block;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(99,102,241,.3); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.user-avatar, .profile-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  text-decoration: none;
}

.user-info { flex: 1; min-width: 0; }
.user-name { display: block; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: .7rem; color: var(--text-muted); }

.logout-btn {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  text-decoration: none;
  transition: color var(--transition);
}
.logout-btn svg { width: 16px; height: 16px; }
.logout-btn:hover { color: var(--red); }

/* ── Main Layout ────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  height: var(--topbar-h);
  background: rgba(17,19,24,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.sidebar-toggle { display: none; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 6px; }
.sidebar-toggle svg { width: 20px; height: 20px; }
.topbar-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.notif-btn {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.notif-btn svg { width: 20px; height: 20px; }
.notif-btn:hover { color: var(--text-primary); }

.notif-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--red);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.main-content { flex: 1; padding: 28px; }

/* ── Cards ──────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(17,19,24,.96), rgba(17,19,24,.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 16px 50px rgba(0,0,0,.16);
}

.card-sm { padding: 16px; border-radius: var(--radius); }
.card-hover:hover { border-color: var(--border-bright); transform: translateY(-1px); transition: all var(--transition); }

/* ── Stats Grid ─────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--stat-color, var(--accent));
}

.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-secondary); margin-top: 6px; font-weight: 500; }
.stat-change { font-size: .72rem; margin-top: 8px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-secondary); border-color: var(--border-bright); }
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: rgba(248,113,113,.1); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-sm { padding: 5px 12px; font-size: .78rem; }
.btn-xs { padding: 3px 8px; font-size: .72rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-critical { background: rgba(248,113,113,.15); color: var(--red); border: 1px solid rgba(248,113,113,.3); }
.badge-high { background: rgba(251,146,60,.15); color: var(--orange); border: 1px solid rgba(251,146,60,.3); }
.badge-medium { background: rgba(251,191,36,.15); color: var(--yellow); border: 1px solid rgba(251,191,36,.3); }
.badge-low { background: rgba(34,211,160,.15); color: var(--green); border: 1px solid rgba(34,211,160,.3); }

.status-todo { background: rgba(139,144,168,.1); color: var(--text-secondary); border: 1px solid var(--border); }
.status-progress { background: rgba(56,189,248,.15); color: var(--blue); border: 1px solid rgba(56,189,248,.3); }
.status-review { background: rgba(192,132,252,.15); color: var(--purple); border: 1px solid rgba(192,132,252,.3); }
.status-testing { background: rgba(251,191,36,.15); color: var(--yellow); border: 1px solid rgba(251,191,36,.3); }
.status-done { background: rgba(34,211,160,.15); color: var(--green); border: 1px solid rgba(34,211,160,.3); }
.status-blocked { background: rgba(248,113,113,.15); color: var(--red); border: 1px solid rgba(248,113,113,.3); }

/* ── Forms ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .875rem;
  padding: 10px 14px;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b90a8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: .75rem; color: var(--red); margin-top: 5px; }

/* ── Tables ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .855rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-hover); }

/* ── Task Card ──────────────────────────────────── */
.task-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 8px;
}
.task-card:hover { border-color: var(--accent); background: var(--bg-hover); }
.task-card-title { font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.task-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

/* ── Kanban ─────────────────────────────────────── */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.kanban-col {
  min-width: 280px;
  max-width: 300px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.kanban-col-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.kanban-col-title { font-family: var(--font-display); font-size: .875rem; font-weight: 700; flex: 1; }
.kanban-col-count { font-family: var(--font-mono); font-size: .72rem; background: var(--bg-elevated); color: var(--text-muted); padding: 2px 8px; border-radius: 10px; }
.kanban-col-body { flex: 1; padding: 12px; overflow-y: auto; max-height: calc(100vh - 200px); }
.kanban-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; font-size: 1.2rem; line-height: 1; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* ── Alerts ─────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .855rem; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: rgba(34,211,160,.1); border-color: rgba(34,211,160,.3); color: var(--green); }
.alert-error { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: var(--red); }
.alert-warning { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); color: var(--yellow); }
.alert-info { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.3); color: var(--blue); }

/* ── Page Header ────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-heading { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.page-subheading { font-size: .83rem; color: var(--text-secondary); margin-top: 4px; }

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab-link {
  border-radius: 6px 6px 0 0;
  padding-bottom: 12px;
}

.tab-link.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .8rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--text-primary); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.panel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: .82rem;
}

.meta-label {
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: .72rem;
}

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.muted-panel {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.danger-panel {
  background: rgba(248,113,113,.06);
  border: 1px solid rgba(248,113,113,.22);
  border-radius: var(--radius-sm);
  padding: 12px;
}

/* ── Grid Utils ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: .8rem; }
.text-xs { font-size: .72rem; }
.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Login Page ─────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.login-bg {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(192,132,252,.08) 0%, transparent 50%);
  pointer-events: none;
}
.login-grid {
  position: fixed; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-icon {
  width: 56px; height: 56px;
  background: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  box-shadow: 0 0 30px rgba(99,102,241,.4);
}
.login-logo-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.login-logo-tagline { font-size: .78rem; color: var(--text-muted); margin-top: 4px; font-family: var(--font-mono); }
.login-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.login-subtitle { font-size: .82rem; color: var(--text-secondary); margin-bottom: 28px; }

/* ── Progress Bar ───────────────────────────────── */
.progress-bar { background: var(--bg-elevated); border-radius: 4px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width .3s ease; }

/* ── Avatar Group ───────────────────────────────── */
.avatar-group { display: flex; }
.avatar-group .user-avatar { border: 2px solid var(--bg-surface); margin-left: -6px; font-size: .65rem; width: 28px; height: 28px; }
.avatar-group .user-avatar:first-child { margin-left: 0; }

/* ── Tag ────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .68rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* ── Empty state ────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: .4; }
.empty-state-title { font-family: var(--font-display); font-weight: 700; margin-bottom: 8px; }
.empty-state-text { color: var(--text-secondary); font-size: .855rem; }

/* ── Employees ─────────────────────────────────── */
.employee-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.employee-search .form-control {
  min-width: min(320px, 100%);
}

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

.employee-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.employee-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-card-name {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}

.employee-card-email {
  font-size: .72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  word-break: break-word;
}

.employee-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.employee-meta-item {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.employee-meta-label {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.employee-meta-value {
  font-size: .82rem;
  color: var(--text-primary);
  word-break: break-word;
}

.employee-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.employee-preview-list {
  display: flex;
  flex-direction: column;
}

.employee-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.employee-preview-row:first-child {
  padding-top: 0;
}

.employee-preview-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Activity Feed ──────────────────────────────── */
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.activity-content { flex: 1; }
.activity-text { font-size: .83rem; line-height: 1.5; }
.activity-time { font-size: .72rem; color: var(--text-muted); margin-top: 3px; font-family: var(--font-mono); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .grid-2, .grid-3, .detail-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .main-content { padding: 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
  .employee-meta-grid { grid-template-columns: 1fr; }
}

/* ── Animations ─────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .3s ease; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
