/* RESET */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
}

/* APP LAYOUT */
.app {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 80px;
    background: #1e3a8a; /* azul */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo img {
    width: 40px;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: 0.3s;
}

.menu-btn:hover,
.menu-btn.active {
    background: #16a34a; /* verde */
}

/* USER */
.sidebar-user img {
    border-radius: 50%;
}

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* TOPBAR */
.topbar {
    background: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar input {
    padding: 8px;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* MODULES */
.modules {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARDS */
.card {
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-weight: bold;
}

.card h3 {
    margin: 0;
    font-size: 24px;
}

/* COLORES */
.blue { background: #1e3a8a; }
.green { background: #16a34a; }
.orange { background: #f59e0b; }
.purple { background: #7c3aed; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .modules {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .modules {
        grid-template-columns: 1fr;
    }
}

/* BOTONES PRO */
.menu-btn {
    width: 55px;
    height: 55px;

    border-radius: 50%; /* 🔥 círculo */

    border: none;

    background: #0f172a;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    color: #94a3b8;

    cursor: pointer;

    transition: all 0.3s ease;
}

/* HOVER */
.menu-btn:hover {
    transform: translateY(-3px) scale(1.05);

    color: white;

    box-shadow:
        0 0 10px #0ea5e9,
        0 0 20px #22c55e;
}

/* ACTIVO */
.menu-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);

    color: white;

    box-shadow:
        0 0 10px #0ea5e9,
        0 0 20px #22c55e;
}

/* NECESARIO PARA TOOLTIP */
.menu-btn {
    position: relative;
}

/* TOOLTIP PRO */
.menu-btn::after {
    content: attr(data-tooltip);
    position: absolute;

    left: 70px;
    top: 50%;
    transform: translateY(-50%);

    background: #020617;
    color: #e2e8f0;

    padding: 6px 12px;
    border-radius: 8px;

    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;

    transition: all 0.2s ease;

    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* MOSTRAR TOOLTIP */
.menu-btn:hover::after {
    opacity: 1;
    left: 80px;
}

.menu-btn i {
    color: #94a3b8;
}

.menu-btn:hover i,
.menu-btn.active i {
    color: white;
}