/*
  Unified flat theme for the whole panel: black background, white text,
  red (Adidi Shop) accent only where it matters. Loaded last on every page
  so it wins the cascade over each page's own inline <style> block without
  having to rewrite every page. Kills glassmorphism/gradients/blur/hover-lift
  everywhere except the sidebar and dropdown menus, which keep their motion.
  Semantic status colors (success/warning/danger) are left intact.
*/

:root {
  --primary: #ff3333 !important;
  --primary-light: #ff5555 !important;
  --primary-dark: #cc2929 !important;
  --primary-gradient: #ff3333 !important;
  --secondary: #ff3333 !important;
  --secondary-gradient: #ff3333 !important;
  --bg-dark: #000000 !important;
  --bg-darker: #000000 !important;
  --background: #000000 !important;
  --background-secondary: #0d0d0d !important;
  --card-bg: #0d0d0d !important;
  --card-bg-hover: #121212 !important;
  --glass: #0d0d0d !important;
  --glass-border: #1f1f1f !important;
  --border: #1f1f1f !important;
  --border-light: #1f1f1f !important;
  --text: #ffffff !important;
  --text-light: #b3b3b3 !important;
  --text-muted: #888888 !important;
  --success: #22c55e !important;
  --warning: #f59e0b !important;
  --danger: #ef4444 !important;
  --error: #ef4444 !important;
  --shadow: none !important;
  --shadow-sm: none !important;
  --shadow-lg: none !important;
  --shadow-colored: none !important;
  --transition: none !important;
  --transition-fast: none !important;
}

/* ---------- kill motion & glass everywhere ---------- */
*, *::before, *::after {
  animation: none !important;
  transition: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* keep functional spinners spinning */
.loading, .spinner, .fa-spin,
[class*="spinner"], [class*="loading"] i.fas, [class*="loading"] i.fa {
  animation: panel-spin 0.8s linear infinite !important;
}
@keyframes panel-spin { to { transform: rotate(360deg); } }

/* particles: pure decoration, not needed */
#particles, .particle { display: none !important; }

/* sidebar collapse toggle: not needed, remove it */
.sidebar-toggle { display: none !important; }

/* red glow overlays behind page titles / body background -> flat black */
.page-header::before, body::before {
  content: none !important;
}
.stat-icon::before {
  content: none !important;
}

/* ---------- restore motion for sidebar + dropdown menus only ---------- */
.sidebar, .sidebar *, .sidebar *::before, .sidebar *::after,
.dropdown-menu, .dropdown-menu *, .dropdown-menu *::before, .dropdown-menu *::after,
.language-dropdown, .language-dropdown *,
.bot-switcher-dropdown, .bot-switcher-dropdown *,
.language-current, .bot-switcher-current, .sidebar-toggle,
.language-arrow, .bot-switcher-arrow {
  transition: all 0.25s ease !important;
}
.language-option:hover, .bot-switcher-option:hover {
  transform: translateX(4px) !important;
}

/* ...but not the sidebar nav buttons themselves: no hover motion there */
.nav-link, .nav-link *, .nav-link::before, .nav-link::after {
  transition: none !important;
}
.nav-link:hover {
  transform: none !important;
}

/* ---------- base ---------- */
html, body {
  background: #000000 !important;
  color: #ffffff !important;
}

/* ---------- surfaces: cards, panels, menus, inputs ---------- */
.footer,
.card, .stat-card, .bot-card, .toolbar, .form-section, .stats-info,
.modal-content, .empty-state,
.dropdown-menu, .language-dropdown, .bot-switcher-dropdown,
.toast, .bulk-actions-bar, .empty-state-icon,
select, .sort-select, textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="tel"], input[type="url"],
.form-control, .form-input, .search-input {
  background: #0d0d0d !important;
  background-image: none !important;
  border: 1px solid #1f1f1f !important;
  border-radius: 8px !important;
}

/* page title area: no card, sits straight on the black page like a plain heading */
.page-header, .hero-section {
  background: none !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 0 1.5rem 0 !important;
  box-shadow: none !important;
}

/* sidebar/navbar: match the page black, separated by a hairline only */
.navbar, .sidebar {
  background: #000000 !important;
  background-image: none !important;
  border-color: #1a1a1a !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.footer { border-radius: 0 !important; border-top: 1px solid #1f1f1f !important; }

/* small elements get a tighter radius */
.status-badge, .status-indicator, .filter-chip, .page-btn, .btn-sm,
.stat-icon, .toast-icon {
  border-radius: 6px !important;
}

/* circular elements must stay circular */
.bot-avatar, .owner-avatar, .user-avatar, .brand-icon, img.rounded-circle,
.language-current img, .language-option img {
  border-radius: 50% !important;
}

/* normalize a couple of pages that ran their numbers/titles noticeably larger than the rest */
.stat-value { font-size: 2rem !important; }
.page-title { font-size: 2.25rem !important; }

/* ---------- gradient text -> plain white ---------- */
h1, h2, h3, h4, h5, h6,
.logo-text, .stat-value, .welcome-section h1, .hero-text h1, .card-title,
.brand, .page-title, .navbar-brand span {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: #ffffff !important;
}

p, span, div, label, li, td, th, small {
  text-shadow: none !important;
}

/* ---------- accent bars / colored icon badges: drop for a plain, monochrome card ---------- */
.stat-card::before, .bot-card::before, .modal-content::before {
  content: none !important;
}
.stat-icon {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}
.stat-card.success .stat-icon, .stat-card.warning .stat-icon, .stat-card.danger .stat-icon,
.stat-icon.primary, .stat-icon.success, .stat-icon.warning, .stat-icon.error {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ---------- buttons: flat, one color each, no lift ---------- */
.btn, button, input[type="submit"] {
  border-radius: 8px !important;
  background-image: none !important;
}
.btn:hover, button:hover, .card:hover, .stat-card:hover, .bot-card:hover,
.filter-chip:hover, .page-btn:hover, .nav-link:hover {
  transform: none !important;
}
.btn-primary, .discord-btn { background: #ff3333 !important; color: #fff !important; }
.btn-secondary { background: #121212 !important; color: #fff !important; border: 1px solid #1f1f1f !important; }
.btn-success { background: #22c55e !important; color: #fff !important; }
.btn-danger { background: #ef4444 !important; color: #fff !important; }
.btn-warning { background: #f59e0b !important; color: #fff !important; }

/* ---------- sidebar nav buttons: solid active state, no hover motion ---------- */
.nav-menu { padding: 0 1rem !important; }
.nav-item { margin-bottom: 0.25rem !important; }
.nav-link {
  padding: 0.75rem 1rem !important;
  gap: 0.75rem !important;
  font-size: 0.95rem !important;
  border-radius: 8px !important;
}
.nav-icon { width: 18px !important; font-size: 1rem !important; color: inherit !important; }
.nav-link { color: rgba(255, 255, 255, 0.6) !important; }
.nav-link:hover { color: #ffffff !important; }
.nav-link.active {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}
.bot-switcher-icon { color: rgba(255, 255, 255, 0.6) !important; }

/* ---------- focus state: plain outline instead of glow ---------- */
input:focus, select:focus, textarea:focus,
.form-control:focus, .form-input:focus, .search-input:focus {
  outline: 2px solid #ff3333 !important;
  outline-offset: 1px;
  border-color: #ff3333 !important;
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid #ff3333 !important;
  outline-offset: 2px;
}

/* ---------- tables ---------- */
table { background: #0d0d0d !important; border: 1px solid #1f1f1f !important; }
th, td { border-color: #1f1f1f !important; }
tr:hover { background: #141414 !important; }

/* ---------- scrollbar: simple ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333333; border-radius: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #ff3333; }
