/**
 * TopSignals Executive Intelligence Platform Stylesheet
 * Strict parity with iSPACE CMS styling, Surface tokens, and Dark Mode transitions.
 */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  height: 100%;
  height: 100dvh;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #E4E4E7;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D4D4D8;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #3F3F46;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #52525B;
}

/* Sidebar Nav Button Active State */
.sidebar-nav-btn {
  cursor: pointer;
  border: 1px solid transparent;
}

.sidebar-nav-btn.active {
  background-color: #F4F4F5;
  color: #004AAD !important;
  font-weight: 700 !important;
  border-color: #E4E4E7;
}

html.dark .sidebar-nav-btn.active {
  background-color: #27272A;
  color: #60A5FA !important;
  border-color: #3F3F46;
}

/* Source Filter Button Active State */
.source-filter-btn {
  cursor: pointer;
  transition: all 0.15s ease;
}

.source-filter-btn.active {
  background-color: #EFF6FF !important;
  color: #2563EB !important;
  border-color: #BFDBFE !important;
}

html.dark .source-filter-btn.active {
  background-color: rgba(30, 58, 138, 0.4) !important;
  color: #93C5FD !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

/* Toast Notifications */
.toast-item {
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(10px);
  opacity: 0;
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.hide {
  transform: translateY(10px);
  opacity: 0;
}

/* Loader Spin Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* Clean Form Focus */
input:focus, select:focus, textarea:focus {
  outline: none;
}
