* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --accent: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
}

@media (min-width: 1024px) {
  #app {
    zoom: 1.1;
    height: calc(100vh / 1.1);
  }
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
}

.nav-item {
  transition: all 0.2s;
}

.nav-item:hover {
  background: #F1F5F9;
}

.nav-item.active {
  background: #EEF2FF;
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.stat-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
}

.badge-red {
  background: #FEE2E2;
  color: #DC2626;
}

.badge-orange {
  background: #FFEDD5;
  color: #EA580C;
}

.badge-yellow {
  background: #FEF9C3;
  color: #CA8A04;
}

.badge-green {
  background: #D1FAE5;
  color: #059669;
}

.badge-blue {
  background: #DBEAFE;
  color: #2563EB;
}

.badge-purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: var(--bg-primary);
  overflow: auto;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.drilldown-panel {
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.table-row:hover {
  background: #F8FAFC;
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.scroll-list {
  max-height: 400px;
  overflow-y: auto;
}

.scroll-list::-webkit-scrollbar {
  width: 6px;
}

.scroll-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.auto-scroll {
  animation: scroll 20s linear infinite;
}

.metric-card {
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.input-field {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  transition: border-color 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.toast {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.submenu {
  display: none;
}

.nav-item.has-submenu.active .submenu {
  display: block;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.h-screen {
  height: 100vh;
}

.min-h-screen {
  min-height: 100vh;
}