/* DASHBOARD — matches ZenoxyzOS navy/gold theme */

.dashboard-wrap { min-height: 100vh; background: var(--bg); }

/* HEADER */
.dashboard-header {
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,9,15,0.6);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.dashboard-header-left { display: flex; align-items: center; gap: 1rem; }
.demo-badge {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(200,146,42,0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-weight: 500;
}
.dashboard-client-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}
.header-right { display: flex; align-items: center; gap: 2rem; }
.live-dot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3DD68C;
  box-shadow: 0 0 6px #3DD68C;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.header-time { font-size: 0.8rem; color: var(--fg-muted); }

/* CONTENT */
.dashboard-content { padding: 3rem 4rem; max-width: 1400px; margin: 0 auto; }

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.kpi-card:hover { border-color: rgba(200,146,42,0.25); }
.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.4;
}
.kpi-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kpi-icon { color: var(--accent); opacity: 0.8; }
.kpi-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.kpi-sub {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-weight: 300;
}
.kpi-badge-good {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(61,214,140,0.1);
  color: #3DD68C;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}
.kpi-badge-warn {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(200,146,42,0.15);
  color: var(--accent);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
}
.section-meta { font-size: 0.8rem; color: var(--fg-muted); }

/* STAFF TABLE */
.staff-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.staff-table {
  width: 100%;
  border-collapse: collapse;
}
.staff-table thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 500;
  white-space: nowrap;
}
.staff-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.staff-table tbody tr:last-child { border-bottom: none; }
.staff-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.staff-table td { padding: 1.25rem 1.5rem; vertical-align: middle; }
.staff-name-cell { display: flex; align-items: center; gap: 1rem; }
.staff-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(200,146,42,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.staff-info { display: flex; flex-direction: column; }
.staff-name { font-size: 0.95rem; font-weight: 500; color: var(--fg); }
.staff-role { font-size: 0.78rem; color: var(--fg-muted); font-weight: 300; }
.staff-hours { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; color: var(--fg); }
.staff-hours-sub { font-size: 0.75rem; color: var(--fg-muted); font-weight: 300; }
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), rgba(200,146,42,0.6));
}
.sla-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}
.sla-good { background: rgba(61,214,140,0.1); color: #3DD68C; }
.sla-warn { background: rgba(200,146,42,0.15); color: var(--accent); }
.sla-bad  { background: rgba(220,80,80,0.1); color: #DC5050; }

/* BOTTOM ROW */
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.mini-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.mini-card-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.mini-card-sub { font-size: 0.78rem; color: var(--fg-muted); font-weight: 300; }
.bar-list { display: flex; flex-direction: column; gap: 0.75rem; }
.bar-row { display: flex; align-items: center; gap: 0.75rem; }
.bar-label { font-size: 0.8rem; color: var(--fg-muted); width: 80px; flex-shrink: 0; font-weight: 300; }
.bar-track { flex: 1; height: 4px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 100px; opacity: 0.7; }
.bar-val { font-size: 0.75rem; color: var(--fg-muted); width: 30px; text-align: right; flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .dashboard-header { padding: 1rem 1.5rem; }
  .dashboard-content { padding: 2rem 1.5rem; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .staff-table td, .staff-table thead th { padding: 0.9rem 1rem; }
  .staff-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
  .staff-name { font-size: 0.85rem; }
  .header-right { gap: 1rem; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-value { font-size: 2rem; }
  .dashboard-header-left { flex-wrap: wrap; gap: 0.5rem; }
}