@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #06070a;
  --bg-sidebar: #06070a;
  --bg-card: #0d1017;
  --bg-hover: #151923;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.15);
  
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.15);
  
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.15);
  
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.15);
  
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* SCROLLBARS */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

body {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding-top: 16px;
}
.sidebar-header {
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-box {
  width: 24px;
  height: 24px;
  background-color: var(--blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.sub-brand {
  padding: 12px 20px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.nav-section {
  padding: 20px 12px 0;
}
.nav-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 0 12px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: 0.15s;
  margin-bottom: 2px;
}
.nav-item svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; }
.nav-item:hover {
  color: var(--text-main);
  background-color: rgba(255,255,255,0.02);
}
.nav-item.active {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

/* LAYOUT */
.main-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.view-container {
  display: none;
  padding: 32px 48px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  animation: fade 0.2s;
}
.view-container.active { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* BUTTONS */
.btn {
  background: var(--bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn.blue { background: var(--blue-bg); color: var(--blue); border-color: var(--blue); }

/* GRID */
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 16px; }

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.card-head svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; color: var(--text-muted); }
.card-body { padding: 20px; flex: 1; }
.card-body.no-pad { padding: 0; }

/* STAT TILES */
.stat-value { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.stat-label { color: var(--text-muted); font-size: 12px; }

/* BADGES */
.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.badge.yellow { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge.green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge.blue { background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.badge.gray { background: rgba(156, 163, 175, 0.1); color: var(--text-muted); border: 1px solid rgba(156, 163, 175, 0.2); }
.badge.red { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.2); }

/* TICKET ROWS */
.ticket-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row:hover { background: rgba(255,255,255,0.01); }

/* TABS */
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active { color: var(--text-main); border-bottom-color: var(--blue); }

/* STATS BAR */
.stats-bar {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  background: var(--bg-card);
}
.stats-item {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.stats-item:last-child { border-right: none; }
.s-lbl { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.s-val { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.s-trend { font-size: 12px; display:flex; align-items:center; gap:4px; }
.s-trend.blue { color: var(--blue); }
.s-trend.red { color: var(--red); }

/* GREETING */
.greeting-title { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.greeting-name { color: var(--blue); }
.greeting-date { color: var(--text-muted); font-size: 14px; }

/* EMPTY STATE */
.empty-state { padding: 40px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* SIDEBAR FOOTER */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
}
