* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.demo-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9em;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card h3 {
    color: #666;
    font-size: 1em;
    margin-bottom: 10px;
}

.card .value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.change {
    font-size: 1.1em;
    margin-top: 5px;
}

.change.positive {
    color: #4CAF50;
}

.change.negative {
    color: #f44336;
}

.signal {
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.signal.buy {
    background: #4CAF50;
    color: white;
}

.signal.sell {
    background: #f44336;
    color: white;
}

.signal.hold {
    background: #ff9800;
    color: white;
}

.confidence {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.indicators-section, .position-section, .reasons-section, .trades-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.indicators-section h2, .position-section h2, .reasons-section h2, .trades-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.indicator {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.indicator-name {
    font-weight: 500;
    color: #666;
}

.indicator-value {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

.indicator-value.oversold {
    color: #4CAF50;
}

.indicator-value.overbought {
    color: #f44336;
}

.indicator-value.bullish {
    color: #4CAF50;
}

.indicator-value.bearish {
    color: #f44336;
}

.indicator-value.high {
    color: #ff9800;
}

.position-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.position-info div {
    margin-bottom: 10px;
}

.reasons-list {
    max-height: 200px;
    overflow-y: auto;
}

.reason-item {
    padding: 10px;
    background: #f5f5f5;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 3px solid #2196F3;
}

.controls {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn {
    padding: 15px 40px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-primary.active {
    background: #f44336;
}

.status {
    display: inline-block;
    margin-left: 20px;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.status.running {
    background: #4CAF50;
    color: white;
}

.status.stopped {
    background: #f44336;
    color: white;
}

.trades-list {
    max-height: 400px;
    overflow-y: auto;
}

.trade-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.trade-item:last-child {
    border-bottom: none;
}

.trade-type {
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
}

.trade-type.buy {
    background: #4CAF50;
    color: white;
}

.trade-type.sell {
    background: #f44336;
    color: white;
}

.empty {
    text-align: center;
    color: #999;
    padding: 20px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.info {
    border-left: 4px solid #2196F3;
}

.notification.error {
    border-left: 4px solid #f44336;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

footer p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .status {
        display: block;
        margin: 10px 0;
    }
    
    .notification {
        right: 10px;
        left: 10px;
    }
}
