/**
 * Estilos para embedeamiento de Power BI
 */

/* Contenedor de reportes */
.reports-list {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Elemento de reporte */
.report-item {
    margin: 0;
    padding: 0;
}

.report-item .report-link {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.report-item .report-link:hover {
    background-color: rgba(79, 195, 247, 0.1);
    border-left-color: #4fc3f7;
    padding-left: 25px;
}

.report-item.active .report-link {
    background-color: rgba(79, 195, 247, 0.2);
    border-left-color: #4fc3f7;
    color: #4fc3f7;
    font-weight: 600;
}

/* Contenedor del iframe */
.report-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
}

.report-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Mensaje de carga */
.report-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 14px;
}

.report-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error */
.report-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #e74c3c;
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

.report-error::before {
    content: '⚠';
    display: inline-block;
    margin-right: 10px;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .report-item .report-link {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .report-item .report-link:hover {
        padding-left: 20px;
    }
    
    .reports-list {
        padding: 10px 0;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .report-container {
        background: #1a1a1a;
    }
    
    .report-container iframe {
        background: #1a1a1a;
    }
}
