/* Trading Tool Styles */

.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-section .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Trading Interface Layout */
.trading-interface {
    padding: 40px 0;
    background: #f5f7fa;
}

.trading-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

/* Chart Panel */
.chart-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

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

.control-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.control-group select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-group select:hover {
    border-color: #4CAF50;
}

.control-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.tool-btn, .analyze-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-btn {
    background: #2196F3;
    color: white;
}

.tool-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.analyze-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

#chart-container {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 2px;
}

/* Analysis Panel */
.analysis-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analysis-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.analysis-card h3 {
    margin: 0 0 15px 0;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-content {
    font-size: 0.9rem;
}

/* Market Structure */
.structure-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.structure-item:last-child {
    border-bottom: none;
}

.structure-item .label {
    font-weight: 600;
    color: #666;
}

.structure-item .value {
    font-weight: 700;
    color: #1a1a2e;
}

/* CHOCH Analysis */
.choch-explanation {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
}

.signals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signal-item {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}

.signal-item.bullish {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #4CAF50;
}

.signal-item.bearish {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left-color: #f44336;
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.signal-type {
    font-weight: 700;
    font-size: 0.95rem;
}

.signal-time {
    font-size: 0.8rem;
    color: #666;
}

.signal-details {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.no-signals, .no-trades, .no-levels {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Trade Bureau */
.trade-bureau {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

.trade-bureau h3 {
    color: white;
}

.trade-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trade-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.trade-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trade-direction {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
}

.trade-direction.long {
    background: #4CAF50;
    color: white;
}

.trade-direction.short {
    background: #f44336;
    color: white;
}

.trade-confidence {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    font-weight: 600;
}

.trade-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.85rem;
}

.trade-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trade-detail .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.trade-detail .value {
    font-weight: 700;
    font-size: 0.9rem;
}

.trade-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
}

.trade-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trade-btn.execute {
    background: #4CAF50;
    color: white;
}

.trade-btn.execute:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.trade-btn.dismiss {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.trade-btn.dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Risk Management */
.risk-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.input-group input {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.risk-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.risk-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.risk-item .label {
    font-weight: 600;
    color: #666;
}

.risk-item .value {
    font-weight: 700;
    color: #4CAF50;
    font-size: 1.05rem;
}

/* Key Levels */
.levels-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.level-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #FFD700;
}

.level-price {
    font-weight: 700;
    color: #1a1a2e;
}

.level-remove {
    padding: 4px 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.level-remove:hover {
    background: #d32f2f;
}

/* Educational Section */
.educational-section {
    padding: 60px 0;
    background: white;
}

.educational-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1a1a2e;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.education-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.education-card h3 {
    color: #1a1a2e;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.education-card p {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .trading-layout {
        grid-template-columns: 1fr;
    }
    
    .analysis-panel {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .subtitle {
        font-size: 1rem;
    }
    
    .chart-controls {
        flex-direction: column;
    }
    
    #chart-container {
        height: 400px;
    }
    
    .analysis-panel {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Status Indicators */
.status-bullish {
    color: #4CAF50;
    font-weight: 700;
}

.status-bearish {
    color: #f44336;
    font-weight: 700;
}

.status-neutral {
    color: #FF9800;
    font-weight: 700;
}

