/* ===== Base ===== */
body {
    background: #121212;
    color: white;
    font-family: sans-serif;
    margin: 0;
}

/* ===== Controls Bar ===== */
#controls {
    padding: 15px 20px;
    text-align: center;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#controls input[type="text"] {
    padding: 10px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
}

#controls button {
    padding: 10px 20px;
    cursor: pointer;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

#controls button:hover {
    background: #0056b3;
}

/* ===== Toggle Groups ===== */
.toggle-group {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #aaa;
    font-size: 13px;
}

.toggle-group label {
    cursor: pointer;
}

.mode-group {
    background: #1e1e1e;
    padding: 6px 12px;
    border-radius: 4px;
}

.mode-group input[type="radio"] {
    margin-right: 4px;
}

/* ===== Status Indicator ===== */
#status {
    color: #888;
    font-size: 13px;
}

/* ===== Chart Container ===== */
#chart {
    width: 100%;
    height: 85vh;
}

/* ===== Inline Error & Loading Messages ===== */
.message {
    padding: 20px;
    text-align: center;
}

.message-error {
    color: #ff5555;
}

.message-loading {
    color: #888;
    padding: 40px;
}

/* ===== Select Dropdowns ===== */
#controls select {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #1e1e1e;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

#controls select:hover {
    border-color: #666;
}

/* ===== TradingView Price Chart ===== */
#price-chart-wrapper {
    width: 100%;
    padding: 0 20px 20px 20px;
    box-sizing: border-box;
}

#tv-chart {
    width: 100%;
    height: 600px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}