/* Estilos movidos desde dashboard.php y clases utilitarias */

/* Contenedor de los gráficos */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Altura específica para el gráfico de EUR/USD */
.chart-container-eurusd {
    height: 400px;
}

/* Estilos críticos antes inline del header.php */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.page-loading {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.page-loaded {
    opacity: 1;
}

/* Estilos para install.php */
.install-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}
.install-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    margin: 0 10px;
    font-weight: bold;
}
.step.active {
    background: #667eea;
    color: white;
}
.step.completed {
    background: #28a745;
    color: white;
}
.requirement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.requirement:last-child {
    border-bottom: none;
}
.my-20 {
    margin: 20px 0;
}

/* Contenedor externo para gráficos con tamaño fijo */
.chart-outer {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 350px;
}

/* Ocultar elementos (equivalente a display: none) */
.d-none {
    display: none !important;
}

/* Canvas de los gráficos con altura fija */
.chart-canvas {
    height: 350px !important;
}

/* Caja de color para leyenda de gráficos */
.legend-color-box {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    /* El color de fondo se asigna dinámicamente */
}

/* Texto verde personalizado para variaciones positivas */
.text-success-custom {
    color: #4CAF50 !important;
}

/* Texto rojo personalizado para variaciones negativas */
.text-danger-custom {
    color: #f44336 !important;
}

/* Color personalizado para P&L (se asigna dinámicamente por JS) */
.pnl-color {
    font-weight: bold;
}