/*  ========= css documentation ==============

 * theme name: TradeBotX
 * version: 1.0
 * description: TradeBotX - Common Application Styles
 * author: UIAXIS
 * author-url: https://themeforest.net/user/uiaxis

    -------------------------------------------------
    Table of Contents
    -------------------------------------------------
    01. Variables and Theme
    02. Global Styles
    03. Custom Scrollbar
    04. Glassmorphism
    05. Gradients & Text
    06. Animations
    07. Badges and Status
    08. Sidebar
    09. Main Layout
    10. Card Styles
    11. Buttons
    12. Form Controls
    13. Dropdowns
    14. Drawers & Modals
    15. Floating Action Button
    16. Utility Classes
    17. Common Component Classes
    18. Dashboard Elements
    19. Tabs System
    20. Data Tables
    21. Toggle Switches
    22. Filter Chips
    ================================================== */

/* -------------------------------------------------------------------------- */
/* 01. Variables and Theme */
/* -------------------------------------------------------------------------- */

/* CSS Variables and Theme */
/* @import "tailwindcss"; */

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

@custom-variant dark (&:where(.dark, .dark *));

@theme {
  --color-bg: #f8fafc;
  --color-panel: #f8fafc;
  --color-muted: #64748b;
  --color-text: #0f172a;
  --color-border: #e2e8f0;
  --color-glass: rgba(255, 255, 255, 0.85);
  --color-accent: #575beb;
  --color-secondary: #10b981;

  --color-green-500: #02b048;

  --breakpoint-xs: 450px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  --breakpoint-3xl: 1920px;

  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #0ea5e9;
  --color-teal: #14b8a6;
  --color-orange: #f97316;
  --color-crypto: #f7931a;
  --color-defi: #627eea;
  --color-ai: #10b981;
  --color-cyber: #00f5a0;
  --color-eth: #627eea;
}

.dark {
  --color-bg: #06080c;
  --color-panel: #0c0f16;
  --color-muted: #94a3b8;
  --color-text: #f1f5f9;
  --color-border: #1e293b;
  --color-glass: rgba(12, 15, 22, 0.85);
  --color-green-500: #15f56e;
}

/* -------------------------------------------------------------------------- */
/* 02. Global Styles */
/* -------------------------------------------------------------------------- */

@import "./pages.css";
@import "./loader.css";

body {
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted);
}

/* -------------------------------------------------------------------------- */
/* 04. Glassmorphism */
/* -------------------------------------------------------------------------- */
.glass {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
  background: rgba(12, 15, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* -------------------------------------------------------------------------- */
/* 05. Gradients & Text */
/* -------------------------------------------------------------------------- */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 50%, #ec4899 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.gradient-success {
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
}

.gradient-danger {
  background: linear-gradient(135deg, var(--color-error) 0%, #dc2626 100%);
}

.gradient-warning {
  background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%);
}

.gradient-info {
  background: linear-gradient(135deg, var(--color-info) 0%, var(--color-accent) 100%);
}

.gradient-teal {
  background: linear-gradient(135deg, var(--color-teal) 0%, #06b6d4 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-error) 100%);
}

.gradient-crypto {
  background: linear-gradient(135deg, var(--color-crypto) 0%, #ff9500 100%);
}

.gradient-defi {
  background: linear-gradient(135deg, var(--color-defi) 0%, #8b5cf6 100%);
}

.gradient-ai {
  background: linear-gradient(135deg, var(--color-success) 0%, #06b6d4 50%, #8b5cf6 100%);
}

.gradient-cyber {
  background: linear-gradient(135deg, var(--color-cyber) 0%, #00d9f5 100%);
}

.gradient-eth {
  background: linear-gradient(135deg, var(--color-defi) 0%, #8b5cf6 100%);
}

.gradient-info {
  background: linear-gradient(135deg, #00b4d8 0%, var(--color-accent) 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.gradient-btc {
  background: linear-gradient(135deg, #f7931a 0%, #f59e0b 100%);
}

.gradient-trading {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-crypto {
  background: linear-gradient(135deg, var(--color-crypto) 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyber {
  background: linear-gradient(135deg, var(--color-cyber) 0%, #00d9f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -------------------------------------------------------------------------- */
/* 06. Animations */
/* -------------------------------------------------------------------------- */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.pulse-dot.green {
  background: var(--color-success);
}

.pulse-dot.yellow {
  background: var(--color-warning);
}

.pulse-dot.red {
  background: var(--color-error);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* -------------------------------------------------------------------------- */
/* 07. Badges and Status */
/* -------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.status-badge.paused {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.status-badge.stopped {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
}

.status-badge.pending {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-accent);
}

.dropdown-menu.notifications-menu {
  @apply max-[420px]:-left-[153px]! max-[450px]:-left-[183px]! max-[430px]:right-0!;
}

/* -------------------------------------------------------------------------- */
/* 08. Sidebar */
/* -------------------------------------------------------------------------- */
.sidebar {
  background: var(--color-panel);
  border-right: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 280px;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .user-info,
.sidebar.collapsed .nav-arrow,
.sidebar.collapsed .submenu {
  display: none;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 14px;
}

.sidebar.collapsed .nav-item i {
  margin: 0;
}

.sidebar.collapsed .logo-section {
  justify-content: center;
  padding: 16px;
}

.sidebar.collapsed .user-section {
  justify-content: center;
  padding: 16px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 20px 8px;
  margin-top: 8px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 2px 12px;
  border-radius: 12px;
  color: var(--color-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

.nav-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05));
  color: var(--color-text);
}

.nav-item.active {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
}

.nav-item.has-submenu.active {
  background: transparent;
  color: var(--color-accent);
}

.nav-item.active::before {
  height: 28px;
}

.nav-item.has-submenu.active::before {
  display: none;
}

.nav-item .nav-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.nav-item.expanded .nav-arrow {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.submenu.open {
  max-height: 500px;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 32px;
  margin: 2px 12px;
  border-radius: 10px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submenu-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--color-text);
}

.submenu-item.active {
  color: var(--color-white);
  background: var(--color-accent);
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .nav-item {
  position: relative;
}

.sidebar.collapsed .nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-left: 10px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar.collapsed .nav-item:hover::after {
  opacity: 1;
  visibility: visible;
}

/* -------------------------------------------------------------------------- */
/* 09. Main Layout */
/* -------------------------------------------------------------------------- */
.main-content {
  margin-left: 280px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
}

.main-content.expanded {
  margin-left: 80px;
}

.inner-content {
  @apply max-sm:px-3 max-lg:px-4 max-lg:py-6 lg:p-6;
}

/* -------------------------------------------------------------------------- */
/* 10. Card Styles */
/* -------------------------------------------------------------------------- */
.card-elevated,
.card-static {
  background: var(--color-panel);
  border-radius: 20px;
  border: 1px solid var(--color-border);
}

/*  */

.card-elevated {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-elevated {
  @apply max-sm:px-3 max-lg:px-4 max-lg:py-6 lg:p-6;
}

.card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -15px rgba(99, 102, 241, 0.25);
}

/* Badge */
.badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.badge-success {
  background: rgba(16, 185, 129, 0.05);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.05);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
  background: rgba(99, 102, 241, 0.05);
  color: var(--color-accent);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-premium {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2));
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-free {
  background: rgba(6, 182, 212, 0.05);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.05);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-teal {
  background: rgba(20, 184, 166, 0.05);
  color: var(--color-teal);
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.badge-crypto {
  background: rgba(247, 147, 26, 0.05);
  color: var(--color-crypto);
  border: 1px solid rgba(247, 147, 26, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.05);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-neutral {
  background: rgba(100, 116, 139, 0.05);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.badge-secondary {
  background: rgba(99, 102, 241) !important;
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* -------------------------------------------------------------------------- */
/* 11. Buttons */
/* -------------------------------------------------------------------------- */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  @apply bg-accent text-white px-4 md:px-6 py-2 md:py-3 rounded-xl font-semibold text-base duration-300 cursor-pointer inline-flex items-center gap-2 hover:translate-y-[-2px] hover:shadow-[0_10px_30px_-10px_rgba(245,158,11,0.5)];
}

.btn-secondary {
  @apply bg-panel text-text px-4 md:px-6 py-2 md:py-3 rounded-xl font-semibold text-base border border-border duration-300 cursor-pointer inline-flex items-center gap-2 hover:translate-y-[-2px] hover:shadow-[0_10px_30px_-10px_rgba(245,158,11,0.5)];
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-accent);
}

.btn-secondary:hover {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

.btn-success {
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(16, 185, 129, 0.5);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  padding: 8px 12px;
}

.btn-ghost:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-text);
}

.btn-ai {
  background: linear-gradient(135deg, var(--color-success) 0%, #06b6d4 50%, #8b5cf6 100%);
  color: white;
}

.btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px rgba(6, 182, 212, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-error) 0%, #dc2626 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px rgba(239, 68, 68, 0.5);
}

/* -------------------------------------------------------------------------- */
/* 12. Form Controls */
/* -------------------------------------------------------------------------- */
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 14px;
  transition: all 0.3s ease;
}

select.form-control {
  width: 100%;
  padding: 12px 16px;
  padding-right: 44px; /* space for custom arrow */
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 14px;
  transition: 0.3s;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='gray' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

select {
  /* width: 100%; */
  padding: 12px 16px;
  padding-right: 44px; /* space for custom arrow */
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 14px;
  transition: 0.3s;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='gray' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
  color: var(--color-muted);
}

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Time Input - Custom Clock Icon */
input[type="time"].form-control {
  position: relative;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

input[type="time"].form-control::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

input[type="time"].form-control:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Search Input */
/* .search-input {
  padding-left: 44px;
} */

/* -------------------------------------------------------------------------- */
/* 13. Dropdowns */
/* -------------------------------------------------------------------------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-accent);
}

/* -------------------------------------------------------------------------- */
/* 14. Drawers & Modals */
/* -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -560px;
  width: 560px;
  max-width: 95vw;
  height: 100vh;
  background: var(--color-panel);
  border-left: 1px solid var(--color-border);
  z-index: 201;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.drawer.active {
  right: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  background: var(--color-panel);
  border-radius: 20px;
  width: 600px;
  max-width: 90vw;
  border: 1px solid var(--color-border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-modal.active .search-modal-content {
  transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* 15. Floating Action Button */
/* -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent), #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
  z-index: 90;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .main-content.expanded {
    margin-left: 0;
  }

  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
  }
}

/* -------------------------------------------------------------------------- */
/* 16. Utility Classes */
/* -------------------------------------------------------------------------- */
.border-border {
  border-color: var(--color-border) !important;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* 17. Common Component Classes */
/* -------------------------------------------------------------------------- */

/* Bot Status */
.bot-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bot-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.bot-status-dot.active {
  background: var(--color-success);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.bot-status-dot.paused {
  background: var(--color-warning);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.bot-status-dot.stopped {
  background: var(--color-error);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
  animation: none;
}

/* Crypto Icon */
.crypto-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
}

.crypto-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
}

.crypto-icon-lg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 16px;
}

/* Sparkline mini chart */
.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 30px;
}

.sparkline-bar {
  width: 4px;
  border-radius: 2px;
  transition: height 0.3s ease;
}

/* Live Indicator */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(239, 68, 68, 0.1);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-error);
}

.live-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-error);
  animation: pulse 1.5s infinite;
}

/* Trade Card */
.trade-card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.trade-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

/* PnL Colors */
.pnl-positive {
  color: var(--color-success);
}
.pnl-negative {
  color: var(--color-error);
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, rgba(99, 102, 241, 0.1) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Gradient Border Card */
.gradient-border-card {
  position: relative;
  background: var(--color-panel);
  border-radius: 20px;
  padding: 2px;
}

.gradient-border-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--color-accent), #8b5cf6, #ec4899);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.gradient-border-card-inner {
  background: var(--color-panel);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}

/* Exchange Logo */
.exchange-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
}
/* -------------------------------------------------------------------------- */
/* 18. Dashboard Elements */
/* -------------------------------------------------------------------------- */

/* Stats Card */
.stats-card {
  position: relative;
  overflow: hidden;
}

/* Progress Bar */
.progress-bar {
  @apply overflow-hidden h-2 bg-accent/20 rounded-full;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------- */
/* 19. Tabs System */
/* -------------------------------------------------------------------------- */
.tab-container {
  display: flex;
  gap: 4px;
  background: var(--color-bg);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  overflow-x: auto;
}

.tab-button {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--color-text);
  background: rgba(99, 102, 241, 0.05);
}

.tab-button.active {
  color: var(--color-white);
  background: var(--color-accent);
  border-color: rgba(99, 102, 241, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* -------------------------------------------------------------------------- */
/* 20. Data Tables */
/* -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.data-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr {
  background: var(--color-panel);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.03));
}

.data-table tbody td {
  padding: 16px 18px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.data-table tbody td:first-child {
  border-left: 1px solid var(--color-border);
  border-radius: 12px 0 0 12px;
}

.data-table tbody td:last-child {
  border-right: 1px solid var(--color-border);
  border-radius: 0 12px 12px 0;
}

/* -------------------------------------------------------------------------- */
/* 21. Toggle Switches */
/* -------------------------------------------------------------------------- */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--color-border);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
  background: linear-gradient(135deg, var(--color-accent), #8b5cf6);
}

.toggle-switch.active::after {
  left: 27px;
}

/* -------------------------------------------------------------------------- */
/* 22. Filter Chips */
/* -------------------------------------------------------------------------- */
.filter-chip {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-chip.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.mobile-menu-btn {
  @apply size-11 p-0 rounded-xl flex items-center justify-center bg-panel border border-border text-text cursor-pointer transition-all ease-in-out duration-300 lg:hidden;
}

.sidebar-toggle-btn {
  @apply size-11 p-0 rounded-xl lg:flex items-center justify-center bg-panel border border-border text-text cursor-pointer transition-all ease-in-out duration-300 hidden;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating i {
  color: var(--color-warning);
}

.star-rating i.empty {
  color: var(--color-border);
}

.card-pump {
  background: var(--color-panel);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-pump::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-success), #22c55e);
  opacity: 0;
  transition: opacity 0.3s;
}

.card-pump:hover::after {
  opacity: 1;
}

.card-pump:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 40px -10px rgba(16, 185, 129, 0.2);
}

.pump-alert-card.pump-high {
  border-left: 4px solid var(--color-success);
}
.pump-alert-card.pump-medium {
  border-left: 4px solid var(--color-warning);
}
.pump-alert-card.pump-low {
  border-left: 4px solid var(--color-accent);
}

.progress-bar-fill {
  @apply h-full;
}

.gradient-sol {
  background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
}
