/* Style.css - Dark Mode Optimized */
:root {
    --primary: #3b82f6;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
    --accent: #10b981;
    --danger: #ef4444;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text h1 { margin: 0; font-size: 1.5rem; background: linear-gradient(to right, #3b82f6, #8b5cf6); -webkit-background-clip: text; color: transparent; }

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    gap: 1rem;
    padding: 1rem;
    height: calc(100vh - 80px);
    overflow: hidden;
}

@media (max-width: 1024px) {
    .main-content { grid-template-columns: 1fr; overflow-y: auto; height: auto; }
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.card-body { padding: 1rem; }

/* Chart */
.chart-card .card-body { padding: 0; height: 400px; }
.chart-container { width: 100%; height: 100%; }

/* Inputs & Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

input[type="text"] {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    width: 200px;
}

/* Search Results */
.search-results {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    width: 200px;
    z-index: 100;
    display: none;
}
.search-result-item { padding: 10px; cursor: pointer; }
.search-result-item:hover { background: var(--primary); }

/* Indicators */
.indicator-bar { height: 6px; background: #333; border-radius: 3px; margin-top: 5px; }
.indicator-fill { height: 100%; width: 50%; background: var(--primary); border-radius: 3px; transition: width 0.5s; }

/* Signals */
.signal-card { padding: 1rem; border-radius: 8px; text-align: center; }
.signal-card.buy { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--accent); }
.signal-card.sell { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--danger); }
.signal-card.neutral { background: rgba(255, 255, 255, 0.05); }

/* Utility */
.positive { color: var(--accent); }
.negative { color: var(--danger); }
.loading-screen { position: fixed; inset: 0; background: var(--bg-primary); z-index: 999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s; }
