/* Estilos específicos para la página de análisis integrado */

/* Estilos para las pestañas principales */
.integration-tabs {
    margin-bottom: 20px;
}

.integration-tabs .nav-link {
    padding: 15px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0;
    color: #6c757d;
}

.integration-tabs .nav-link.active {
    font-weight: bold;
    color: #7B1FA2;
    border-bottom: 3px solid #7B1FA2;
    background-color: transparent;
}

.integration-tabs .nav-link:hover:not(.active) {
    background-color: rgba(123, 31, 162, 0.1);
    color: #7B1FA2;
}

/* Contenedor de iframe */
.module-container {
    position: relative;
    width: 100%;
    height: 800px; /* Altura fija en lugar de padding-bottom */
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.module-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: white;
    display: block; /* Garantizar que sea visible */
}

/* Spinner de carga */
.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    z-index: 10;
}

.loader {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 5px solid #7B1FA2;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

/* Ajustes de responsive */
@media (max-width: 768px) {
    .integration-tabs .nav-link {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    .module-container {
        height: 600px; /* Altura más pequeña para móviles */
    }
}