/* General Styles */
.wptas-chart-wrapper {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Toolbar */
.wptas-chart-toolbar {
    background: #2d2d2d;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #404040;
}

.toolbar-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.symbol-input {
    padding: 8px 12px;
    background: #3d3d3d;
    border: 1px solid #555;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.interval-select {
    padding: 8px 12px;
    background: #3d3d3d;
    border: 1px solid #555;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-icon {
    background: #3d3d3d;
    border: 1px solid #555;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-icon:hover {
    background: #4d4d4d;
}

/* Chart Container */
.wptas-chart-container {
    display: flex;
    min-height: 600px;
}

/* Indicators Sidebar */
.wptas-indicators-sidebar {
    width: 280px;
    background: #2d2d2d;
    border-right: 1px solid #404040;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #404040;
}

.sidebar-header h4 {
    margin: 0 0 10px 0;
    color: #fff;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    background: #3d3d3d;
    border: 1px solid #555;
    color: #fff;
    border-radius: 6px;
    box-sizing: border-box;
}

.indicators-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 500px;
}

.indicator-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin: 4px 0;
    background: #3d3d3d;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.indicator-item:hover {
    background: #4d4d4d;
}

.indicator-item input {
    margin-right: 10px;
}

.indicator-item span {
    color: #e0e0e0;
    font-size: 13px;
    flex: 1;
}

.indicator-type {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.indicator-type.volume { background: #4caf50; }
.indicator-type.trend { background: #2196f3; }
.indicator-type.momentum { background: #ff9800; }
.indicator-type.volatility { background: #9c27b0; }
.indicator-type.trend-strength { background: #f44336; }

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid #404040;
    display: flex;
    gap: 10px;
}

.btn-block {
    flex: 1;
}

/* TradingView Widget */
#wptas-tradingview-widget {
    flex: 1;
    min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wptas-chart-container {
        flex-direction: column;
    }
    
    .wptas-indicators-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #404040;
    }
    
    .indicators-list {
        max-height: 300px;
    }
    
    .wptas-chart-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-group {
        justify-content: center;
    }
}