/* Dark Mode BI Dashboard Custom Styles */

:root {
  --bg-primary: #0b0f19;    /* Deep space slate background */
  --bg-secondary: #131a26;  /* Card slate background */
  --bg-hover: #1e293b;      /* Hover states background */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  
  --color-emerald: #10b981;
  --color-rose: #f43f5e;
  --color-blue: #3b82f6;
  --color-orange: #ff5621;
}

body {
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

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

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

/* Sidebar interactions */
.sidebar-link {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.sidebar-link.active {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--color-blue);
  border-left: 3px solid var(--color-blue);
}

/* Premium Card hover glow effect */
.bi-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.bi-card:hover {
  transform: translateY(-2px);
  border-color: #334155;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.4);
}

/* Alerts and neon glows */
.glow-emerald {
  box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.2);
}

.glow-rose {
  box-shadow: 0 0 15px -3px rgba(244, 63, 94, 0.2);
}

/* Table styling for dark theme */
.table-row {
  transition: background-color 0.15s ease;
}

.table-row:hover {
  background-color: rgba(30, 41, 59, 0.5);
}

/* Slide-over Panel Animations */
.slide-over-backdrop {
  transition: opacity 0.3s ease-out;
}

.slide-over-panel {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-over-container.hidden .slide-over-backdrop {
  opacity: 0;
}

.slide-over-container.hidden .slide-over-panel {
  transform: translateX(100%);
}

/* Interactive WhatsApp Badge Button animation */
.whatsapp-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* View transition fade-in */
.view-fade {
  animation: fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

