html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.sidebar-icon {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #94a3b8;
  transition: all 160ms ease;
}

.sidebar-icon:hover {
  background: #f8fafc;
  color: #334155;
}

.sidebar-icon-active {
  background: #eff6ff;
  color: #2563eb;
}

.sidebar-icon-disabled {
  cursor: not-allowed;
  color: #cbd5e1;
}

.sidebar-icon-disabled:hover {
  background: transparent;
  color: #cbd5e1;
}

.workspace-mode-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: white;
  padding: 14px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  transition: all 160ms ease;
}

.workspace-mode-button:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.workspace-mode-button-active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.chart-panel-tab-button {
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  transition: all 160ms ease;
}

.chart-panel-tab-button:hover {
  color: #0f172a;
}

.chart-panel-tab-button-active {
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.workspace-mode-button-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.chart-type-button {
  border-radius: 10px;
  padding: 8px 14px;
  color: #64748b;
  transition: all 160ms ease;
}

.profile-menu-panel {
  transform-origin: top right;
}

.profile-menu-panel-open {
  animation: profile-menu-in 140ms ease;
}

@keyframes profile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chart-type-button-active {
  background: white;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.chart-type-button:disabled,
.theme-color-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.theme-color-button {
  height: 32px;
  width: 32px;
  border-radius: 999px;
  border: 3px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.theme-color-button-active {
  border-color: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.import-composer-active {
  border-color: #60a5fa;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

@media (max-width: 1279px) {
  .sidebar-shell {
    position: fixed;
    bottom: 16px;
    left: 16px;
    top: auto;
    z-index: 40;
    height: auto;
    width: auto;
    flex-direction: row;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  }

  .sidebar-shell nav {
    flex-direction: row;
    gap: 8px;
  }

  .sidebar-shell > a:first-child {
    margin-bottom: 0;
  }
}
