/* DISEÑO ASIMÉTRICO DE DOS COLUMNAS */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* MENÚ LATERAL IZQUIERDO */
.sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-align: center;
}

.user-profile-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.user-profile-box p { font-weight: 600; font-size: 15px; }
.user-profile-box span { font-size: 12px; opacity: 0.8; text-transform: uppercase; }

.sidebar-menu { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.menu-section { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.section-title { font-size: 11px; font-weight: bold; opacity: 0.5; padding-left: 10px; margin-top: 10px; }

.menu-item {
    background: transparent;
    color: #fff;
    text-align: left;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    border-radius: 6px;
    display: block;
    transition: background 0.2s;
}
.menu-item:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.menu-item.active { background: var(--accent-color); font-weight: bold; }
.menu-item:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-logout-sidebar {
    background: rgba(220, 53, 69, 0.2);
    color: #ff8787;
    margin-top: auto;
    font-size: 14px;
}
.btn-logout-sidebar:hover { background: var(--danger-color); color: white; }

/* CONTENEDOR DE PANTALLAS DERECHA */
.main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: var(--bg-color);
}

/* DISEÑO DE PANTALLA LOGIN */
.login-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    padding: 20px;
}

/* COMPONENTES DE TABLAS */
.table-responsive { width: 100%; overflow-x: auto; margin-top: 15px; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); }
.data-table th { background-color: #f8fafc; font-weight: bold; color: var(--primary-color); }
.data-table tbody tr:hover { background-color: #f8fafc; }

/* REPORTE GRID */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin-top: 15px; }
.stat-card { background: #f8fafc; border: 1px solid var(--border-color); padding: 20px; border-radius: 8px; text-align: center; }
.stat-card h3 { font-size: 24px; color: var(--accent-color); }
.stat-card p { font-size: 13px; color: var(--text-muted); }