/* All CSS from your original <style> tag goes here */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.pump-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.5s ease-out, opacity 0.5s ease-out, transform 0.5s ease-out;
    opacity: 1;
    transform: translateY(0);
}

.pump-card.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.pump-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
}

.positive-change {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.negative-change {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.scanner-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

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

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.rank-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.top-three {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.market-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.spot-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.perp-badge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.pump-score-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.pump-score-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    transition: width 0.5s ease;
}

.connection-status {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.connected {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.disconnected {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.chart-container {
    position: relative;
    height: 200px;
    margin-top: 1rem;
}

/* Tab styles - Full width layout */
.tabs-container {
    display: flex;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #9ca3af; /* gray-400 */
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    text-align: center;
}

.tab-button:hover {
    color: #e5e7eb; /* gray-200 */
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    color: #fff;
    border-bottom-color: #34d399; /* green accent */
    background: transparent;
}

.tab-content {
    padding-top: 1rem;
}

.tab-content.hidden {
    display: none;
}

/* Pump Card Changes Section */
.pump-changes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.85rem;
  margin-top: 8px;
  color: #bbb;
}

.pump-changes span {
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  text-align: center;
}

.time-since-alert {
  grid-column: 1 / -1;
}

/* === Custom Dropdown Widths === */
/* Force both dropdowns to have the same fixed width */
#sortBy,
#marketFilter,
#pointsMarketFilter,
#pointsTimeframe,
#peaksMarketFilter,
#peaksTimeframe {
    width: 100px;      /* Fixed width for consistency */
    max-width: 100px;  /* Prevent expansion */
    text-overflow: ellipsis; /* Show ... if text is too long */
    white-space: nowrap;
    overflow: hidden;
}

/* Tradingview */

.symbol-row {
  display: flex;
  align-items: center;
  gap: 4px; /* Space between symbol text and icon */
}

.tv-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #787b86; /* Default grey */
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.2s ease;
  padding: 2px;
}

.tv-link:hover {
  opacity: 1.0;
  color: #2962ff; /* TradingView Blue */
  transform: scale(1.1);
  cursor: pointer;
}

.tv-icon {
  width: 14px; /* Adjust size as needed */
  height: 14px;
  fill: currentColor;
}
