/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f0f11;
  --bg2:       #17171c;
  --bg3:       #1e1e26;
  --border:    #2a2a36;
  --accent:    #c8f060;
  --accent2:   #7c6af7;
  --accent3:   #f06060;
  --text:      #e8e8f0;
  --text2:     #9090a8;
  --text3:     #5a5a72;
  --sidebar-w: 240px;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --font-head: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --trans:     .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

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

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

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

.brand-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  color: #0f0f11;
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--text);
}

.brand-sub {
  display: block;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--trans);
  cursor: pointer;
}

.nav-item svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active {
  background: rgba(200,240,96,.1);
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg3);
  border-radius: var(--radius-sm);
}

.user-avatar {
  width: 32px; height: 32px;
  background: var(--accent2);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: var(--text3); }

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

/* ===== TOPBAR ===== */
.topbar {
  height: 64px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}

.topbar-title {
  font-family: var(--font-head);
  font-size: 20px;
  flex: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
}

.search-box svg {
  width: 16px; height: 16px;
  stroke: var(--text3);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  width: 200px;
}

.search-box input::placeholder { color: var(--text3); }

.notif-btn {
  position: relative;
  width: 40px; height: 40px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  cursor: pointer;
}

.notif-btn svg {
  width: 18px; height: 18px;
  stroke: var(--text2);
  fill: none;
  stroke-width: 1.8;
}

.notif-badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--accent3);
  border-radius: 50%;
  border: 2px solid var(--bg2);
}

/* ===== CONTENT ===== */
.content {
  flex: 1;
  padding: 32px 28px;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 400;
}

.section-header p {
  color: var(--text2);
  font-size: 14px;
  margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--trans);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0f0f11;
}

.btn-primary:hover { background: #b8e050; transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-danger {
  background: rgba(240,96,96,.15);
  color: var(--accent3);
  border: 1px solid rgba(240,96,96,.3);
}

.btn-danger:hover { background: rgba(240,96,96,.25); }

.btn-sm { padding: 6px 14px; font-size: 12px; }

.btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--trans);
}

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

.stat-card:hover { border-color: var(--card-accent, var(--accent)); }

.stat-label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.stat-value { font-family: var(--font-head); font-size: 36px; line-height: 1; margin-bottom: 8px; }
.stat-change { font-size: 12px; color: var(--text2); }
.stat-change.up { color: var(--accent); }
.stat-change.dn { color: var(--accent3); }

.stat-icon {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  display: grid; place-items: center;
}

.stat-icon svg {
  width: 18px; height: 18px;
  stroke: var(--card-accent, var(--accent));
  fill: none;
  stroke-width: 1.8;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 400;
}

.card-body { padding: 24px; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead tr {
  border-bottom: 1px solid var(--border);
}

thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text3);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background var(--trans);
}

tbody tr:hover { background: rgba(255,255,255,.02); }

tbody td {
  padding: 14px 16px;
  color: var(--text2);
  vertical-align: middle;
}

tbody td:first-child { color: var(--text); font-weight: 500; }

.emp-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.emp-avatar img { width: 100%; height: 100%; object-fit: cover; }

.emp-name { font-weight: 500; color: var(--text); }
.emp-email { font-size: 12px; color: var(--text3); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
}

.badge-green { background: rgba(200,240,96,.12); color: var(--accent); }
.badge-purple { background: rgba(124,106,247,.15); color: var(--accent2); }
.badge-red { background: rgba(240,96,96,.12); color: var(--accent3); }
.badge-gray { background: rgba(255,255,255,.06); color: var(--text2); }
.badge-blue { background: rgba(96,160,240,.12); color: #60a0f0; }

/* ===== ACTIONS ===== */
.action-group { display: flex; gap: 6px; align-items: center; }

.icon-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  cursor: pointer;
  transition: all var(--trans);
  color: var(--text2);
}

.icon-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.danger:hover { border-color: var(--accent3); color: var(--accent3); }

/* ===== FILTERS ===== */
.filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--trans);
}

.filter-select:focus { border-color: var(--accent); }
.filter-select option { background: var(--bg2); }

/* ===== FORM ===== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text3);
}

input, select, textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--trans);
  width: 100%;
}

input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text3); }
select option { background: var(--bg2); }
textarea { resize: vertical; min-height: 80px; }

.form-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.form-section-title {
  font-family: var(--font-head);
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-title span {
  display: inline-flex;
  width: 28px; height: 28px;
  background: rgba(200,240,96,.1);
  color: var(--accent);
  border-radius: 50%;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--bg3);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--trans);
  margin-bottom: 20px;
}

.photo-upload-area:hover { border-color: var(--accent); }

.photo-preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg2);
  display: grid; place-items: center;
  font-size: 28px;
  font-family: var(--font-head);
  color: var(--text3);
  flex-shrink: 0;
}

.photo-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.photo-hint { color: var(--text3); font-size: 13px; line-height: 1.5; }
.photo-hint strong { color: var(--text); display: block; font-size: 14px; margin-bottom: 4px; }

/* ===== EDUCATION / EXPERIENCE ENTRIES ===== */
.entry-list { display: flex; flex-direction: column; gap: 12px; }

.entry-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
}

.entry-item .remove-entry {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(240,96,96,.1);
  color: var(--accent3);
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 14px;
  line-height: 1;
  transition: background var(--trans);
}

.entry-item .remove-entry:hover { background: rgba(240,96,96,.25); }

.add-entry-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  padding: 10px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  width: 100%;
  transition: all var(--trans);
  margin-top: 8px;
}

.add-entry-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===== DASHBOARD CHARTS ===== */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.dash-grid .card.full { grid-column: 1 / -1; }

.chart-bar-wrap { display: flex; flex-direction: column; gap: 10px; }

.chart-bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.chart-bar-row span:first-child { color: var(--text2); text-align: right; }
.chart-bar-row span:last-child { color: var(--text2); text-align: right; font-family: var(--font-mono); font-size: 12px; }

.bar-track { background: var(--bg3); border-radius: 99px; height: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(.4,0,.2,1); }

/* ===== RECENT ACTIVITY ===== */
.activity-list { display: flex; flex-direction: column; gap: 0; }

.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
  align-items: flex-start;
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.activity-text { font-size: 13px; color: var(--text2); line-height: 1.5; }
.activity-text strong { color: var(--text); }
.activity-time { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* ===== DEPARTMENT CARDS ===== */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.dept-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--trans);
  cursor: pointer;
}

.dept-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.dept-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}

.dept-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.dept-name { font-family: var(--font-head); font-size: 18px; margin-bottom: 6px; }
.dept-count { font-size: 13px; color: var(--text3); }
.dept-head { font-size: 12px; color: var(--text2); margin-top: 12px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-overlay.open { display: grid; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .3s ease;
}

@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 32px; height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--trans);
}

.modal-close:hover { color: var(--text); border-color: var(--text2); }

.modal h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 20px; }

/* ===== EMPLOYEE DETAIL ===== */
.emp-detail-header {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.emp-detail-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
  display: grid; place-items: center;
  font-size: 36px;
  font-family: var(--font-head);
}

.emp-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }

.emp-detail-name { font-family: var(--font-head); font-size: 28px; margin-bottom: 4px; }
.emp-detail-role { color: var(--accent); font-size: 14px; font-weight: 500; }
.emp-detail-dept { color: var(--text2); font-size: 13px; margin-top: 4px; }

.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }

.detail-tab {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--trans);
}

.detail-tab.active { color: var(--accent); border-color: var(--accent); }
.detail-tab:hover:not(.active) { color: var(--text); }

.detail-panel { display: none; }
.detail-panel.active { display: block; animation: fadeIn .2s ease; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.info-item { }
.info-item label { display: block; font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.info-item p { font-size: 14px; color: var(--text); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s ease;
  min-width: 220px;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--accent3); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}

.page-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--trans);
}

.page-btn.active { background: var(--accent); color: #0f0f11; border-color: var(--accent); font-weight: 600; }
.page-btn:hover:not(.active) { border-color: var(--text2); color: var(--text); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 48px; height: 48px;
  stroke: var(--text3);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 16px;
  display: block;
}

.empty-state h3 { font-family: var(--font-head); font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text2); font-size: 14px; }

/* ===== REPORTS ===== */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.report-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: all var(--trans);
}

.report-card:hover { border-color: var(--accent2); transform: translateY(-2px); }

.report-icon {
  width: 44px; height: 44px;
  background: rgba(124,106,247,.12);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}

.report-icon svg { width: 22px; height: 22px; stroke: var(--accent2); fill: none; stroke-width: 1.8; }
.report-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.report-desc { font-size: 12px; color: var(--text3); line-height: 1.5; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .main-wrapper { margin-left: 0; }
  .hamburger { display: flex; }
  .dash-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .search-box input { width: 140px; }
  .content { padding: 20px 16px; }
}

/* ===== DONUT CHART ===== */
.donut-wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.donut-chart { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.donut-chart svg { transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center-val { font-family: var(--font-head); font-size: 24px; display: block; }
.donut-center-label { font-size: 11px; color: var(--text3); display: block; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ===== SPARKLINE ===== */
.mini-chart { overflow: visible; }
