/* ============================================================
   HaggardTech Solutions — Dashboard CSS
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body.dashboard-body {
  font-family: 'Inter', sans-serif;
  background: #F0F4FC;
  color: #0B1F4B;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══════════════════════════════════
   SIDEBAR
══════════════════════════════════ */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #060F26 0%, #0B1F4B 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease, width 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); }

.sidebar.collapsed { width: 72px; }

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #C9A84C, #E2C06E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #060F26;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

.sidebar-logo-text {
  overflow: hidden;
  transition: opacity 0.2s, width 0.3s;
}

.sidebar.collapsed .sidebar-logo-text { opacity: 0; width: 0; }

.sidebar-logo-text .name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #FFFFFF;
  white-space: nowrap;
}

.sidebar-logo-text .sub {
  font-size: 0.60rem;
  font-weight: 600;
  color: #C9A84C;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-label {
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 12px 10px 6px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .nav-section-label { opacity: 0; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  color: rgba(255,255,255,0.60);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.10));
  color: #C9A84C;
  border: 1px solid rgba(201,168,76,0.20);
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, #C9A84C, #E2C06E);
  border-radius: 0 3px 3px 0;
}

.sidebar-item-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.sidebar-item-text {
  flex: 1;
  overflow: hidden;
  transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-item-text { opacity: 0; }

.sidebar-badge {
  background: #E74C3C;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-badge { opacity: 0; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.2s;
  overflow: hidden;
}

.sidebar-user:hover { background: rgba(255,255,255,0.10); }

.user-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C, #E2C06E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.90rem;
  font-weight: 700;
  color: #060F26;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
}

.user-info {
  overflow: hidden;
  transition: opacity 0.2s;
}

.sidebar.collapsed .user-info { opacity: 0; }

.user-info .user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info .user-role {
  font-size: 0.70rem;
  color: rgba(255,255,255,0.40);
}

/* ══════════════════════════════════
   MAIN CONTENT
══════════════════════════════════ */
.main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.main-content.expanded { margin-left: 72px; }

/* ══════════════════════════════════
   TOP BAR
══════════════════════════════════ */
.topbar {
  height: 70px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(11,31,75,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(11,31,75,0.06);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-sidebar-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: #F0F4FC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #5A6B8A;
  transition: all 0.2s;
}

.toggle-sidebar-btn:hover { background: #E8EDF5; color: #0B1F4B; }

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0B1F4B;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  color: #8A9BBE;
}

.breadcrumb span { color: #C9A84C; font-weight: 600; }

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

.topbar-date {
  font-size: 0.80rem;
  color: #8A9BBE;
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #F0F4FC;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #5A6B8A;
  position: relative;
  transition: all 0.2s;
}

.topbar-icon-btn:hover { background: #E8EDF5; color: #0B1F4B; }

.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E74C3C;
  border: 2px solid white;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 99px;
  border: 1px solid rgba(11,31,75,0.10);
  background: #F0F4FC;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar-user:hover { background: #E8EDF5; }

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C, #E2C06E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #060F26;
  font-family: 'Outfit', sans-serif;
}

.topbar-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0B1F4B;
}

/* ══════════════════════════════════
   PAGE SECTIONS
══════════════════════════════════ */
.page-section {
  display: none;
  flex: 1;
  padding: 28px;
  animation: sectionFadeIn 0.3s ease;
}

.page-section.active { display: block; }

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

/* ── Welcome Banner ── */
.welcome-banner {
  background: linear-gradient(135deg, #0B1F4B 0%, #1A3A8F 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(11,31,75,0.25);
}

.welcome-banner::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
}

.welcome-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.welcome-text h2 span { color: #C9A84C; }

.welcome-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  line-height: 1.6;
}

.welcome-actions { display: flex; gap: 10px; flex-shrink: 0; }

.welcome-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.welcome-btn.primary {
  background: linear-gradient(135deg, #C9A84C, #E2C06E);
  color: #060F26;
  box-shadow: 0 4px 14px rgba(201,168,76,0.35);
}

.welcome-btn.primary:hover { transform: translateY(-2px); }

.welcome-btn.secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.20);
}

.welcome-btn.secondary:hover { background: rgba(255,255,255,0.20); }

/* ── Stat Cards ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card-dash {
  background: white;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(11,31,75,0.06);
  box-shadow: 0 2px 12px rgba(11,31,75,0.06);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-dash:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(11,31,75,0.12);
}

.stat-card-dash::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card-dash.green::before  { background: linear-gradient(90deg, #2ECC71, #27AE60); }
.stat-card-dash.blue::before   { background: linear-gradient(90deg, #3498DB, #1A3A8F); }
.stat-card-dash.orange::before { background: linear-gradient(90deg, #F39C12, #E67E22); }
.stat-card-dash.gold::before   { background: linear-gradient(90deg, #C9A84C, #E2C06E); }

.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-card-icon.green  { background: rgba(46,204,113,0.12); }
.stat-card-icon.blue   { background: rgba(52,152,219,0.12); }
.stat-card-icon.orange { background: rgba(243,156,18,0.12); }
.stat-card-icon.gold   { background: rgba(201,168,76,0.12); }

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
}

.stat-trend.up   { background: rgba(46,204,113,0.12); color: #2ECC71; }
.stat-trend.down { background: rgba(231,76,60,0.12); color: #E74C3C; }

.stat-card-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0B1F4B;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #8A9BBE;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.dashboard-grid.three { grid-template-columns: 2fr 1fr; }

/* ── Cards ── */
.dash-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(11,31,75,0.06);
  box-shadow: 0 2px 12px rgba(11,31,75,0.06);
  overflow: hidden;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(11,31,75,0.06);
}

.dash-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0B1F4B;
}

.dash-card-title span { font-size: 1.2rem; }

.dash-card-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: #C9A84C;
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.2s;
}

.dash-card-action:hover { color: #A07830; }

.dash-card-body {
  padding: 20px 24px;
}

/* ── Project Progress ── */
.project-item {
  margin-bottom: 20px;
}

.project-item:last-child { margin-bottom: 0; }

.project-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.project-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0B1F4B;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: #C9A84C;
}

.project-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-active   { background: rgba(52,152,219,0.12); color: #3498DB; }
.badge-critical { background: rgba(231,76,60,0.12); color: #E74C3C; }
.badge-on-track { background: rgba(46,204,113,0.12); color: #2ECC71; }
.badge-pending  { background: rgba(243,156,18,0.12); color: #F39C12; }
.badge-open     { background: rgba(231,76,60,0.12); color: #E74C3C; }
.badge-progress { background: rgba(52,152,219,0.12); color: #3498DB; }
.badge-resolved { background: rgba(46,204,113,0.12); color: #2ECC71; }
.badge-high     { background: rgba(231,76,60,0.12); color: #E74C3C; }
.badge-medium   { background: rgba(243,156,18,0.12); color: #F39C12; }
.badge-low      { background: rgba(46,204,113,0.12); color: #2ECC71; }

.progress-bar-wrap {
  height: 8px;
  background: #F0F4FC;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1A3A8F, #C9A84C);
  transition: width 1.2s cubic-bezier(0.34,1.56,0.64,1);
  width: 0;
}

.project-details {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #8A9BBE;
}

/* ── Payment Feed ── */
.payment-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(11,31,75,0.05);
}

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

.payment-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(46,204,113,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.payment-info { flex: 1; }

.payment-client {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0B1F4B;
}

.payment-date {
  font-size: 0.75rem;
  color: #8A9BBE;
}

.payment-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #2ECC71;
}

/* ── Tickets Table ── */
.tickets-table {
  width: 100%;
  border-collapse: collapse;
}

.tickets-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A9BBE;
  padding: 0 12px 12px;
  border-bottom: 1px solid rgba(11,31,75,0.08);
}

.tickets-table td {
  padding: 12px;
  font-size: 0.85rem;
  color: #5A6B8A;
  border-bottom: 1px solid rgba(11,31,75,0.05);
}

.tickets-table tr:last-child td { border-bottom: none; }

.ticket-id { font-weight: 700; color: #C9A84C; }
.ticket-title { font-weight: 600; color: #0B1F4B; }

/* ── Attendance ── */
.attendance-box {
  text-align: center;
}

.clock-display {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #0B1F4B;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.clock-date {
  font-size: 0.85rem;
  color: #8A9BBE;
  margin-bottom: 20px;
}

.clock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: 'Outfit', sans-serif;
}

.clock-btn.clock-in {
  background: linear-gradient(135deg, #2ECC71, #27AE60);
  color: white;
  box-shadow: 0 4px 14px rgba(46,204,113,0.35);
}

.clock-btn.clock-out {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: white;
  box-shadow: 0 4px 14px rgba(231,76,60,0.35);
}

.clock-btn:hover { transform: translateY(-2px) scale(1.03); }

.clock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
}

.clock-status.in  { background: rgba(46,204,113,0.12); color: #2ECC71; }
.clock-status.out { background: rgba(231,76,60,0.12); color: #E74C3C; }

.attendance-log {
  margin-top: 20px;
  text-align: left;
}

.attend-log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(11,31,75,0.05);
  font-size: 0.80rem;
}

.attend-log-item .log-label { color: #8A9BBE; }
.attend-log-item .log-value { font-weight: 600; color: #0B1F4B; }

/* ── Chat ── */
.chat-messages {
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(11,31,75,0.15); }

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-msg.mine { flex-direction: row-reverse; }

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A3A8F, #0B1F4B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.chat-avatar.gold { background: linear-gradient(135deg, #C9A84C, #E2C06E); color: #060F26; }

.chat-bubble {
  background: #F0F4FC;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  max-width: 70%;
}

.chat-msg.mine .chat-bubble {
  background: linear-gradient(135deg, #0B1F4B, #1A3A8F);
  color: white;
  border-radius: 12px 0 12px 12px;
}

.chat-bubble .chat-sender {
  font-size: 0.70rem;
  font-weight: 700;
  color: #C9A84C;
  margin-bottom: 4px;
}

.chat-msg.mine .chat-bubble .chat-sender { color: rgba(255,255,255,0.60); }

.chat-bubble .chat-text {
  font-size: 0.85rem;
  color: #0B1F4B;
  line-height: 1.5;
}

.chat-msg.mine .chat-bubble .chat-text { color: white; }

.chat-bubble .chat-time {
  font-size: 0.65rem;
  color: #8A9BBE;
  margin-top: 4px;
}

.chat-msg.mine .chat-bubble .chat-time { color: rgba(255,255,255,0.45); }

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(11,31,75,0.07);
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(11,31,75,0.12);
  border-radius: 99px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  background: #F0F4FC;
  font-family: 'Inter', sans-serif;
}

.chat-input:focus { border-color: rgba(201,168,76,0.50); background: white; }

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C, #E2C06E);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover { transform: scale(1.10); }

/* ── Chart ── */
.chart-container {
  position: relative;
  height: 240px;
}

/* ── Revenue Chart ── */
.revenue-chart-wrap {
  height: 280px;
  position: relative;
}

/* ── Generic Sections (Placeholder) ── */
.section-placeholder {
  background: white;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(11,31,75,0.06);
  box-shadow: 0 2px 12px rgba(11,31,75,0.06);
}

.section-placeholder .ph-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.section-placeholder h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0B1F4B;
  margin-bottom: 10px;
}

.section-placeholder p {
  color: #8A9BBE;
  font-size: 0.92rem;
  max-width: 400px;
  margin: 0 auto 24px;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid.three { grid-template-columns: 1fr; }
  .welcome-banner { flex-direction: column; gap: 20px; }
}

@media (max-width: 560px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .page-section { padding: 16px; }
  .topbar { padding: 0 16px; }
}
