
  :root {
    --primary: #2a6fff;
    --primary-dark: #1a5ae8;
    --secondary: #1e1e2f;
    --secondary-light: #2a2a3c;
    --accent: #00d4aa;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --success: #00c853;
    --warning: #ffab00;
    --danger: #ff1744;
    --border: #3a3a4a;
  }
  
  body {
    background-color: var(--secondary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    padding-bottom: 240px; /* Space for bottom panel */
  }
  
  .navbar {
    background-color: var(--secondary-light);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
  }
  
  .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
  }
  
  .navbar-brand i {
    color: var(--primary);
    margin-right: 0.5rem;
  }
  
  .user-menu {
    display: flex;
    align-items: center;
  }
  
  .pro-version-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
  }
  
  .pro-version-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 111, 255, 0.3);
    color: white;
  }
  
  .card {
    background-color: var(--secondary-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
  }
  
  .card-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .table {
    color: var(--text-primary);
    margin-bottom: 0;
  }
  
  .table th {
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.75rem;
  }
  
  .table td {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    vertical-align: middle;
  }
  
  .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .connection-status {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
  }
  
  .connection-status.connected { color: var(--success); }
  .connection-status.connecting { color: var(--warning); }
  .connection-status.error { color: var(--danger); }
  .connection-status.disconnected { color: var(--text-secondary); }
  
  .status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
  }
  
  .status-indicator.connected { background-color: var(--success); }
  .status-indicator.connecting { background-color: var(--warning); }
  .status-indicator.error { background-color: var(--danger); }
  .status-indicator.disconnected { background-color: var(--text-secondary); }
  
  .sidebar {
    background-color: var(--secondary-light);
    border-left: 1px solid var(--border);
    height: calc(100vh - 70px - 240px); /* Account for bottom panel */
    overflow-y: auto;
    position: sticky;
    top: 70px;
  }
  
  .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  
  .form-check-label {
    color: var(--text-primary);
  }
  
  .form-label {
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
  }
  
  .profit-badge {
    background-color: rgba(0, 200, 83, 0.2);
    color: var(--success);
  }
  
  .loss-badge {
    background-color: rgba(255, 23, 68, 0.2);
    color: var(--danger);
  }
  
  .stats-card {
    text-align: center;
    padding: 1.5rem 1rem;
  }
  
  .stats-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
  
  .stats-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
  }
  
  .exchange-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  .binance { background-color: #f0b90b; color: #000; }
  .okx { background-color: #0d6efd; color: #fff; }
  .kucoin { background-color: #23af91; color: #fff; }
  .gateio { background-color: #3057e6; color: #fff; }
  
  .loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  
  /* Modal Styles */
  .modal-content {
    background-color: var(--secondary-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
  }
  
  .modal-header {
    border-bottom: 1px solid var(--border);
  }
  
  .modal-footer {
    border-top: 1px solid var(--border);
  }
  
  .feature-list {
    list-style: none;
    padding: 0;
  }
  
  .feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
  }
  
  .feature-list li i {
    color: var(--accent);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
  }
  
.pro-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Specific status colors */
.pro-badge[class*="READY"] {
  background: var(--success);
}

.pro-badge[class*="DEVELOPMENT"] {
  background: var(--warning);
  color: #000;
}

.pro-badge[class*="PLANNED"] {
  background: var(--text-secondary);
}

.pro-badge[class*="AVAILABLE"] {
  background: var(--accent);
}
  
  /* Bottom Floating Panel Styles */
  .arbitrage-opportunities-panel {
    position: fixed;
    background: var(--secondary-light);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid var(--success);
    margin: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 240px;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
  }
  
  .arbitrage-opportunities-panel.minimized {
    height: 50px;
  }
  
  .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
  }
  
  .panel-header h2 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  }
  
  .opportunity-count {
    background: var(--success);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
  }
  
  .panel-actions {
    display: flex;
    gap: 8px;
  }
  
  .minimize-btn, .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.2s;
    line-height: 1;
    color: var(--text-primary);
  }
  
  .minimize-btn:hover, .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .opportunities-list {
    flex: 1;
    overflow: hidden;
    padding: 0;
    position: relative;
  }
  
  .opportunities-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 16px;
    gap: 16px;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    align-items: center;
  }
  
  .opportunities-horizontal-scroll::-webkit-scrollbar {
    height: 6px;
  }
  
  .opportunities-horizontal-scroll::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .opportunities-horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 3px;
  }
  
  .arbitrage-opportunity {
    background: rgba(0, 212, 170, 0.1);
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid var(--success);
    min-width: 260px;
    height: 140px;
    flex-shrink: 0;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .arbitrage-opportunity:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .pair-name {
    margin: 0;
    color: var(--success);
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    cursor: pointer;
  }
  
  .opportunity-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    justify-content: space-between;
  }
  
  .exchange-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }
  
  .exchange-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 35px;
  }
  
  .exchange-value {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .price-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 12px;
    min-width: 80px;
    text-align: right;
  }
  
  .profit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
  }
  
  .profit-amount {
    font-weight: 700;
    color: var(--success);
    font-size: 13px;
  }
  
  .profit-percentage {
    color: var(--success);
    font-weight: 600;
    font-size: 13px;
    background: rgba(0, 212, 170, 0.2);
    padding: 4px 8px;
    border-radius: 10px;
  }
  
  .scroll-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
  }
  
  .scroll-indicator:hover {
    opacity: 1;
  }
  
  @media (max-width: 768px) {
    body {
      padding-bottom: 200px;
    }
    
    .sidebar {
      height: auto;
      position: static;
      border-left: none;
      border-top: 1px solid var(--border);
    }
    
    .arbitrage-opportunities-panel {
      height: 200px;
    }
    
    .arbitrage-opportunity {
      min-width: 240px;
      height: 130px;
    }
    
    .panel-header h2 {
      font-size: 14px;
    }
    
    .exchange-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
    
    .price-value {
      text-align: left;
    }
  }
