:root {
    --aliat-blue: #004a99;
    --aliat-cyan: #00aeef;
    --aliat-light: #f0f2f5;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: var(--aliat-light);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #fff;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--aliat-blue);
    z-index: 10;
}

.app-layout {
    display: flex;
    flex: 1; /* Ocupa el resto del espacio */
    overflow: hidden;
}

/* BARRA LATERAL */
.sidebar {
    width: 220px;
    background: var(--aliat-blue);
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    gap: 15px;
}

.tab-button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.tab-button span { font-weight: bold; font-size: 14px; }
.tab-button small { font-size: 11px; opacity: 0.8; }

.tab-button:hover, .tab-button.active {
    background: var(--aliat-cyan);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* CONTENEDOR DEL DASHBOARD CON MÁRGENES */
.main-container {
    flex: 1;
    padding: 25px; /* AQUÍ ESTÁ EL MARGEN que querías */
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-frame {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 15px; /* Bordes redondeados para efecto "tarjeta" */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}