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

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: 'Fira Code', monospace;
}

/* View management */
.view {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view.is-active {
  display: block;
}

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

/* Navigation Active State */
.nav-item.is-active {
  background-color: #ecfdf5; /* emerald-50 */
  color: #059669; /* emerald-600 */
  font-weight: 500;
}
.nav-item.is-active svg {
  color: #10b981; /* emerald-500 */
}

/* Segmented Control Active */
.segmented button.is-active {
  background-color: white;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile Sidebar transitions */
.sidebar-container {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-open .sidebar-container {
  transform: translateX(0);
}

.sidebar-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Bar Chart styling for top list */
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.875rem;
}
.bar-track {
  flex: 1;
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}
.bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #34d399, #10b981);
  border-radius: 9999px;
  transition: width 1s ease-out;
}
