/* Contenedor principal */
.container-fluid {
    padding-top: 32px;
}

/* Menú lateral */
.sidebar {
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(21,101,192,0.09);
    padding: 1.5rem 1rem;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    margin-top: 18px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    margin-bottom: 12px;
}

/* Enlaces del menú */
.nav-link-option {
    text-decoration: none;
    color: #1565c0;
    background: #fff;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: none;
    position: relative;
    outline: none;
}
.nav-link-option:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px #b6e0fe;
    background: #e3f2fd;
    color: #0d47a1;
}
.nav-link-option:hover {
    background: #bbdefb;
    color: #0d47a1;
    border-color: #1565c0;
}
.nav-link-option.active {
    background: #0d6efd;
    color: #fff !important;
    border-color: #002d5d;
    font-weight: 600;
}

/* Iconos en el menú */
.nav-link-option .bi {
    font-size: 1.2rem;
    color: #1976d2;
    margin-right: 0.7rem;
}

/* Contenedor del título */
.border-bottom {
    padding-bottom: 14px;
    margin-bottom: 28px;
    border-bottom: 2px solid #e3e3e3;
}

/* Área del contenido principal */
.content-panel {
    flex: 1;
    padding: 32px 24px;
}

/* Contenedor del iframe */
#powerbi-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: calc(100vh - 170px);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(21,101,192,0.07);
    padding: 2rem 1rem;
    margin-top: 1.5rem;
}
#powerbi-iframe {
    width: 100%;
    min-height: 600px;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    opacity: 0;
    transition: opacity 0.5s;
}

/* Loader del iframe */
#iframe-loader {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 10;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        min-height: unset;
        padding: 12px 6px;
        margin-top: 8px;
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        height: 100vh;
        z-index: 1000;
        display: none;
    }
    #powerbi-container {
        padding: 1rem 0.2rem;
        min-height: 300px;
    }
    .content-panel {
        padding: 16px 8px;
    }
    .nav-link-option {
        font-size: 14px;
        padding: 10px 10px;
    }
}