/* Gold Trading Bot Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    margin-bottom: 20px;
}



.panel {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.panel h3 {
    color: #00ff88;
    margin-bottom: 15px;
    border-bottom: 2px solid #00ff88;
    padding-bottom: 5px;
}









.price-display {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.price-up {
    color: #00ff88;
}

.price-down {
    color: #ff4444;
}

.signal-strength {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.signal-bar {
    flex: 1;
    height: 20px;
    background: #444;
    border-radius: 10px;
    margin-left: 10px;
    overflow: hidden;
}

.signal-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff88);
    transition: width 0.3s ease;
}

.trade-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy {
    background: #00ff88;
    color: #000;
}

.btn-buy:hover {
    background: #00cc66;
    transform: translateY(-2px);
}

.btn-sell {
    background: #ff4444;
    color: #fff;
}

.btn-sell:hover {
    background: #cc3333;
    transform: translateY(-2px);
}

.news-item {
    padding: 10px;
    margin: 10px 0;
    background: #333;
    border-radius: 5px;
    border-left: 3px solid #00ff88;
}

.news-time {
    font-size: 0.8rem;
    color: #888;
}

.indicator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.indicator {
    background: #333;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.indicator-value {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-connected {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.status-disconnected {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #444;
    border-radius: 50%;
    border-top-color: #00ff88;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}




/* Overall Suggestion Banner */
.overall-suggestion-banner {
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    border: 3px solid;
    animation: pulse 2s infinite;
}

.suggestion-content h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.suggestion-content p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.suggestion-buy {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.suggestion-buy-weak {
    background: linear-gradient(135deg, #88ff88, #66cc66);
    color: #000;
    border-color: #88ff88;
    box-shadow: 0 0 15px rgba(136, 255, 136, 0.3);
}

.suggestion-sell {
    background: linear-gradient(135deg, #ff4444, #cc3333);
    color: #fff;
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.suggestion-sell-weak {
    background: linear-gradient(135deg, #ff8888, #cc6666);
    color: #fff;
    border-color: #ff8888;
    box-shadow: 0 0 15px rgba(255, 136, 136, 0.3);
}

.suggestion-neutral {
    background: linear-gradient(135deg, #666, #444);
    color: #fff;
    border-color: #666;
    box-shadow: 0 0 10px rgba(102, 102, 102, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Chart Header with Timeframe Selector */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h3 {
    margin: 0;
    flex: 1;
}

.timeframe-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeframe-selector label {
    color: #00ff88;
    font-weight: bold;
    font-size: 0.9rem;
}

.timeframe-selector select {
    background: #2a2a2a;
    color: #fff;
    border: 2px solid #00ff88;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe-selector select:hover {
    background: #333;
    border-color: #00cc6a;
}

.timeframe-selector select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.timeframe-selector option {
    background: #2a2a2a;
    color: #fff;
}

/* Enhanced responsive design for mobile */
@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .timeframe-selector {
        justify-content: center;
    }
    
    .overall-suggestion-banner {
        margin: 10px 0;
        padding: 15px;
    }
    
    .suggestion-content h2 {
        font-size: 1.5rem;
    }
    
    .suggestion-content p {
        font-size: 1rem;
    }
}







.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    padding: 20px;
    height: calc(100vh - 120px);
}

.chart-panel {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.signals-panel {
    grid-column: 3;
    grid-row: 1;
}

.news-panel {
    grid-column: 3;
    grid-row: 2;
}

.controls-panel {
    grid-column: 1 / 4;
    grid-row: 3;
}




@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        display: flex;
        flex-direction: column;
    }
    
    .chart-panel {
        grid-column: 1;
        grid-row: 1;
    }
    
    .signals-panel {
        grid-column: 1;
        grid-row: 2;
    }
    
    .news-panel {
        grid-column: 1;
        grid-row: 3;
    }
    
    .controls-panel {
        grid-column: 1;
        grid-row: 4;
    }
}




@media (max-width: 768px) {
    .controls-panel .indicator-grid {
        grid-template-columns: 1fr;
    }

    .controls-panel .indicator-grid .indicator {
        text-align: left;
    }

    .controls-panel .indicator-grid .indicator label,
    .controls-panel .indicator-grid .indicator input {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}




@media (max-width: 768px) {
    .indicator label,
    .indicator input {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }
}


