/* ============================================================
   FAXEL BI — Sistema de Diseño Premium
   Dark Mode + Glassmorphism + Micro-animaciones
   ============================================================ */

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

/* ── Variables CSS ──────────────────────────────────────── */
:root {
  /* Paleta principal (Rojo y derivados) */
  --primary:       #E53E3E;
  --primary-dark:  #C53030;
  --primary-glow:  rgba(229, 62, 62, 0.12);
  --secondary:     #9B2C2C;
  --secondary-glow:rgba(155, 44, 44, 0.12);
  --accent:        #E53E3E;
  --accent-glow:   rgba(229, 62, 62, 0.1);
  --success:       #38A169;
  --success-glow:  rgba(56, 161, 105, 0.12);
  --warning:       #DD6B20;
  --danger:        #E53E3E;
  --danger-glow:   rgba(229, 62, 62, 0.12);
  --info:          #3182CE;

  /* Fondos Light (Blanco y Slate claro) */
  --bg-base:       #7F1D1D;
  --bg-surface:    #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-elevated:   #F8FAFC;
  --bg-hover:      #FFF5F5;

  /* Bordes */
  --border:        #E2E8F0;
  --border-hover:  #CBD5E1;
  --border-accent: rgba(229, 62, 62, 0.3);

  /* Texto */
  --text-primary:  #2D3748;
  --text-secondary:#475569;
  --text-muted:    #94A3B8;
  --text-heading:  #1A202C;

  /* Sidebar */
  --sidebar-w:     260px;
  --sidebar-w-sm:  70px;

  /* Efectos */
  --blur:          blur(20px);
  --shadow:        0 8px 32px rgba(0,0,0,0.04);
  --shadow-hover:  0 16px 48px rgba(0,0,0,0.08);
  --shadow-glow:   0 0 40px var(--primary-glow);
  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     20px;

  /* Transición */
  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset y Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar personalizada ────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Layout Principal ───────────────────────────────────── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #E53E3E 0%, #B91C1C 100%);
  border-right: 1px solid rgba(0,0,0,0.1);
  position: fixed;
  left: 0; top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
}

.sidebar.collapsed { width: var(--sidebar-w-sm); }

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
}

.sidebar-brand .brand-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.sidebar-brand .brand-text h1 {
  font-size: 18px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.sidebar-brand .brand-text span {
  font-size: 11px; color: var(--text-muted); font-weight: 400;
}

/* Nav items */
.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; overflow-x: hidden; }

.nav-section {
  padding: 8px 16px 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  margin: 2px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item:hover {
  background: rgba(0,0,0,0.1);
  color: #FFFFFF;
  transform: translateX(2px);
}

.nav-item.active {
  background: rgba(0,0,0,0.25);
  color: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.15);
}

.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 60%;
  background: #FFFFFF;
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
  font-size: 18px;
  min-width: 22px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Sidebar footer */
.sidebar-footer {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 16px;
}

.user-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.user-avatar {
  width: 36px; height: 36px;
  background: #FFFFFF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #E53E3E;
  min-width: 36px;
}

.user-info .user-name { font-size: 13px; font-weight: 600; color: #FFFFFF; }
.user-info .user-role { font-size: 11px; color: rgba(255,255,255,0.7); }

/* ── Main Content ───────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: var(--transition);
}

.sidebar.collapsed ~ .main-content { margin-left: var(--sidebar-w-sm); }

/* Topbar */
.topbar {
  background: linear-gradient(90deg, #E53E3E 0%, #C53030 100%);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 900;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }

.btn-sidebar-toggle {
  background: none; border: none;
  color: #FFFFFF;
  font-size: 20px; cursor: pointer;
  padding: 6px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-sidebar-toggle:hover { color: #FFFFFF; background: rgba(0,0,0,0.1); }

.page-title { font-size: 18px; font-weight: 700; color: #FFFFFF; }
.breadcrumb-bi { font-size: 12px; color: rgba(255,255,255,0.85); margin-top: 2px; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.topbar-action {
  position: relative;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none; display: flex; align-items: center;
}
.topbar-action:hover { border-color: rgba(0,0,0,0.2); color: #FFFFFF; background: rgba(0,0,0,0.25); }

.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
  animation: pulse-badge 2s infinite;
}

/* Área de contenido */
.page-content {
  flex: 1;
  padding: 28px;
  background: var(--bg-base);
  --text-primary:  #FFFFFF;
  --text-secondary:rgba(255,255,255,0.85);
  --text-muted:    rgba(255,255,255,0.65);
  --text-heading:  #FFFFFF;
}

/* ── Cards y Glass ──────────────────────────────────────── */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  transition: var(--transition);
}

/* ── Card BI (Clase adicional) ─────────────────────────── */
.card-bi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.card-bi:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* Restaurar tema de texto oscuro para todo tipo de tarjetas */
.card-glass, .kpi-card, .chart-wrapper, .chat-container, .alert-card, .card-bi, .login-card {
  --text-primary:  #2D3748;
  --text-secondary:#475569;
  --text-muted:    #94A3B8;
  --text-heading:  #1A202C;
}

.card-glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* KPI Cards */
.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-color, var(--primary)), transparent);
}

.kpi-card:hover {
  border-color: var(--card-color, var(--primary));
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--card-color, var(--primary)) inset;
  transform: translateY(-2px);
}

.kpi-card .kpi-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--card-color, var(--primary));
  margin-bottom: 16px;
}

.kpi-card .kpi-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-card .kpi-value {
  font-size: 28px; font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 8px;
}

.kpi-card .kpi-change {
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}

.kpi-change.up   { color: var(--success); }
.kpi-change.down { color: var(--danger); }
.kpi-change.neutral { color: var(--text-muted); }

/* Chart containers */
.chart-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.chart-wrapper:hover { border-color: var(--border-hover); }

.chart-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.chart-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

/* ── Tablas ─────────────────────────────────────────────── */
.table-bi {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-bi thead th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.table-bi tbody tr {
  transition: var(--transition);
}

.table-bi tbody tr:hover { background: var(--bg-hover); }

.table-bi tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
  color: var(--text-primary);
  vertical-align: middle;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge-bi {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-bi.success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-bi.warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-bi.danger  { background: rgba(239,68,68,0.15);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.badge-bi.info    { background: var(--primary-glow); color: var(--primary); border: 1px solid var(--border-accent); }
.badge-bi.purple  { background: var(--secondary-glow); color: var(--secondary); border: 1px solid var(--border-accent); }

/* ── Botones ────────────────────────────────────────────── */
.btn-bi {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-bi.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-bi.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-bi.secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-bi.secondary:hover { border-color: var(--border-hover); }

.btn-bi.danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-bi.danger:hover { background: rgba(239,68,68,0.25); }

.btn-bi.sm { padding: 6px 14px; font-size: 12px; }

/* ── Inputs ─────────────────────────────────────────────── */
.input-bi {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.input-bi:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-bi::placeholder { color: var(--text-muted); }

.form-label-bi {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 6px;
}

/* ── Progress Bars ──────────────────────────────────────── */
.progress-bi {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* ── Alertas UI ─────────────────────────────────────────── */
.alert-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 4px solid;
  display: flex; gap: 14px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.alert-card:hover { background: var(--bg-hover); }
.alert-card.danger  { border-color: var(--danger);  }
.alert-card.warning { border-color: var(--warning); }
.alert-card.info    { border-color: var(--info);    }
.alert-card.success { border-color: var(--success); }

.alert-card-icon {
  font-size: 20px;
  line-height: 1;
}

/* ── Animaciones ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.animate-in { animation: fadeInUp 0.5s ease both; }
.animate-in-left { animation: slideInLeft 0.4s ease both; }

/* Stagger delays para cards */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.30s; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Score/Risk indicators ──────────────────────────────── */
.risk-gauge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.score-ring {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: conic-gradient(
    var(--ring-color, var(--primary)) calc(var(--score, 0) * 1%),
    var(--bg-elevated) 0
  );
  display: flex; align-items: center; justify-content: center;
}

.score-ring::after {
  content: '';
  width: 36px; height: 36px;
  background: var(--bg-card);
  border-radius: 50%;
  position: absolute;
}

/* ── Chat ───────────────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
  animation: fadeInUp 0.3s ease;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-input-row {
  border-top: 1px solid var(--border);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  background: var(--bg-elevated);
}

.chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: none;
  min-height: 44px;
  max-height: 120px;
}
.chat-input:focus { outline: none; border-color: var(--primary); }

/* ── Typing indicator ───────────────────────────────────── */
.typing-indicator {
  display: flex; gap: 5px; align-items: center; padding: 6px 0;
}
.typing-dot {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-6px); opacity: 1; }
}

/* ── Login Page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg-effects {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.glow-orb-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; left: -200px; }
.glow-orb-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -200px; right: -200px; }
.glow-orb-3 { width: 300px; height: 300px; background: var(--accent); top: 50%; left: 50%; transform: translate(-50%,-50%); }

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 42px;
  width: 100%;
  max-width: 440px;
  position: relative; z-index: 1;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-content { padding: 16px; }
  .kpi-value { font-size: 22px; }
}

/* ── Utilidades ─────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.separator { height: 1px; background: var(--border); margin: 20px 0; }

.overflow-hidden { overflow: hidden; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.p-4 { padding: 16px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary-clr { color: var(--primary); }

/* ── Toasts Personalizados ──────────────────────────────── */
.toast-container {
  z-index: 1090 !important;
}

.toast-bi {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
  color: var(--text-primary) !important;
  animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

.toast-bi.toast-danger {
  border-left-color: #E53E3E !important;
}

.toast-bi.toast-warning {
  border-left-color: #DD6B20 !important;
}

.toast-bi.toast-info {
  border-left-color: #3182CE !important;
}

.toast-bi.toast-success {
  border-left-color: #38A169 !important;
}

.toast-bi .toast-header {
  background: transparent !important;
  border-bottom: none !important;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 6px;
  color: var(--text-heading) !important;
}

.toast-bi .toast-body {
  padding: 6px 16px 14px;
  font-size: 13px;
  color: var(--text-secondary) !important;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Custom styles for sliders in simulation */
.simulator-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
  transition: background 0.3s;
}

.simulator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E53E3E;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(229, 62, 62, 0.4);
  transition: transform 0.1s;
}

.simulator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

