/* === ESTILOS BASE === */
body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background: #f6f8fa;
}


.system-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-left: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* === SIDEBAR === */
#sidebar {
    width: 220px;
    background: #22304a;
    color: #fff;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 1200;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar li {
    margin: 0;
}

#sidebar a {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-radius: 0;
    background: #22304a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}

#sidebar a:hover {
    background: #2d3e5e;
}

#sidebar a.logout {
    background: #b32d2d;
}

#sidebar a.logout:hover {
    background: #d13c3c;
}

/* === BOTÓN TOGGLE === */
#toggleSidebar {
    position: fixed;
    top: 12px;
    left: 12px;
    background-color: #ffffff;
    border: none;
    color: #1a2947;
    z-index: 1300;
    border-radius: 6px;
    padding: 6px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.2s ease;
}

#toggleSidebar:hover {
    background-color: #e6e6e6;
}

/* === CONTENIDO PRINCIPAL === */
.main-content {
    margin-left: 220px;
    margin-top: 70px;
    padding: 30px;
    transition: margin-left 0.3s ease;
}

/* === VERSION COLAPSADA === */
#sidebar.collapsed {
    transform: translateX(-220px);
}

#sidebar.collapsed ~ .main-content {
    margin-left: 0 !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-220px);
    }

    #sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* === TARJETAS Y OTROS === */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0001;
    padding: 30px;
    min-width: 200px;
    font-size: 1.2em;
}
