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

/* =====================================================
   BASE
===================================================== */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #010409;
}

/* =====================================================
   SCROLLBAR CUSTOM
===================================================== */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #21262d; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #30363d; }

/* =====================================================
   TIMEFRAME & SPEED BUTTONS
===================================================== */
.tf-btn, .speed-btn {
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}
.tf-btn:hover, .speed-btn:hover { color: #e2e8f0; background: rgba(255,255,255,0.05); }
.tf-btn.active, .speed-btn.active {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 0 12px rgba(29, 78, 216, 0.5);
}

/* =====================================================
   GRID ITEMS (Cards de Nível)
===================================================== */
.level-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #21262d;
    background: #0d1117;
    cursor: default;
}

.level-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

/* Cores frias (Index 0 a 3) */
.heat-c0 { border-color: #1e3a5f; } .heat-c0::before { background: #38bdf8; }
.heat-c1 { border-color: #1e3a5f; } .heat-c1::before { background: #3b82f6; }
.heat-c2 { border-color: #2e3163; } .heat-c2::before { background: #818cf8; }
.heat-c3 { border-color: #3b2163; } .heat-c3::before { background: #8b5cf6; }

/* Cores quentes (Index 0 a 3) */
.heat-h0 { border-color: #2d2a1e; } .heat-h0::before { background: #eab308; }
.heat-h1 { border-color: #3d2215; } .heat-h1::before { background: #f97316; }
.heat-h2 { border-color: #3d1515; } .heat-h2::before { background: #ef4444; }
.heat-h3 { border-color: #4a0d0d; background: #1a0808; } .heat-h3::before { background: #dc2626; box-shadow: 0 0 8px #dc2626; }

/* Inativo */
.level-card.inativo { opacity: 0.5; filter: grayscale(0.5); }

/* Animação de toque */
.level-card.hit-flash {
    animation: flashHit 0.6s ease-out;
}
@keyframes flashHit {
    0%   { background: #1a2e1a; box-shadow: 0 0 20px rgba(16,185,129,0.5); }
    100% { background: #0d1117; box-shadow: none; }
}

/* Barra de calor interna */
.heat-bar-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,0.05);
}
.heat-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* =====================================================
   LOG DE EVENTOS
===================================================== */
.event-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid #21262d;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-4px); }
    to   { opacity: 1; transform: translateX(0); }
}
.event-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =====================================================
   CARD HOTTEST
===================================================== */
#hottest-price { font-family: 'JetBrains Mono', monospace; }

/* =====================================================
   PRICE VARIATION
===================================================== */
#price-variation { font-family: 'JetBrains Mono', monospace; }
.var-up   { color: #10b981; }
.var-down { color: #ef4444; }
.var-flat { color: #64748b; }

/* =====================================================
   INPUTS DE DATA E HORA (ICONES NATIVOS)
===================================================== */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(3) hue-rotate(180deg) brightness(1.2);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
