/* style.css - Premium Dark Crypto Terminal Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #090d16;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --bg-subtle: #1e293b;
    --border-color: #1e293b;
    --border-highlight: #334155;
    --accent-cyan: #38bdf8;
    --accent-green: #10b981;
    --accent-red: #f43f5e;
    --accent-purple: #a855f7;
    --accent-amber: #f59e0b;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Top Navbar */
.crypto-navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
}

.brand-badge {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.timeframe-pill {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background: #1e293b;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.timeframe-pill:hover {
    color: var(--text-primary);
    border-color: #38bdf8;
}

.timeframe-pill.active {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* Chart Type Switcher (Line Chart vs Candles) */
.chart-type-toggle {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: none;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chart-type-toggle:hover {
    color: var(--text-primary);
}

.chart-type-toggle.active {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Crypto Card */
.crypto-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease;
}

.crypto-card:hover {
    border-color: var(--border-highlight);
}

.card-header-custom {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Screener Coin List */
.coin-list-container {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    padding-right: 4px;
}

.coin-row-item {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.coin-row-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateX(3px);
}

.coin-row-item.active {
    background: rgba(30, 41, 59, 0.9);
    border-left: 4px solid var(--accent-cyan);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.coin-symbol {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.coin-price {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Signal Badges */
.signal-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-touch-now {
    background: rgba(239, 68, 68, 0.22);
    color: #ff4d6d;
    border: 1px solid rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    font-weight: 700;
    animation: pulseTouchNow 1.4s infinite;
}

@keyframes pulseTouchNow {
    0%, 100% { box-shadow: 0 0 6px rgba(239, 68, 68, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 18px rgba(239, 68, 68, 0.85); transform: scale(1.02); }
}

.badge-touch-break {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
    animation: pulseGlow 2s infinite;
}

.badge-tl-touch {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
    animation: pulseAmber 1.8s infinite;
}

@keyframes pulseAmber {
    0%, 100% { box-shadow: 0 0 6px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.6); }
}

.badge-breakout {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.badge-breakdown {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.2);
}

.badge-trend-break {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-testing {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 6px rgba(56, 189, 248, 0.2); }
    50% { box-shadow: 0 0 14px rgba(56, 189, 248, 0.5); }
}

/* Chart Container */
#trading-chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 560px;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
}

.rsi-chart-pane {
    width: 100%;
    height: 130px;
    margin-top: 4px;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
}

.smc-plan-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(9, 13, 22, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.smc-plan-cell {
    background: #090d16;
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    border-width: 1px;
    border-style: solid;
    height: 100%;
}

.smc-plan-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.smc-plan-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    color: #f1f5f9;
}

.border-lime {
    border-color: rgba(132, 204, 22, 0.45) !important;
}

.text-lime {
    color: #a3e635 !important;
}

/* Chart Floating Legend */
.chart-floating-legend {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 10;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

/* Active Signal Banner */
.signal-banner {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Technical Metrics Grid */
.metric-box {
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: left;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
}

/* Toggle Switches */
.form-check-input:checked {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

/* Pulse Live Dot */
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Binance Futures Bot UI Enhancements */
.btn-quick-long {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-quick-long:hover {
    background: #10b981;
    color: #0f172a;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-quick-short {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(244, 63, 94, 0.05));
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #f43f5e;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-quick-short:hover {
    background: #f43f5e;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.bot-active-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    color: #10b981 !important;
}

.bot-paused-pill {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #ef4444 !important;
}

.trade-badge-long {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
}

.trade-badge-short {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.4);
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
}

/* ============================================================ */
/* BITCOIN (BTC) LIVE MARKET PULSE & INTEL STYLES               */
/* ============================================================ */
.btc-pulse-banner {
    background: linear-gradient(135deg, rgba(24, 29, 47, 0.92) 0%, rgba(13, 17, 30, 0.96) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 158, 11, 0.08);
    position: relative;
    overflow: hidden;
}
.btc-pulse-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b, #ef4444);
}
.btc-icon-glow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 70%, transparent 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
    flex-shrink: 0;
}
.btc-stat-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}
.btc-stat-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(15, 23, 42, 0.95);
}
.btc-range-track {
    height: 6px;
    background: #0f172a;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.btc-range-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    transition: width 0.4s ease;
}
.btc-bias-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


