/* RESET */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
}

/* APP */
.app {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 80px;
    background: url("/img/sidebar-bg.png") no-repeat center left;
    background-size: cover;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 15px 0;
}

/* LOGO */
.logo {
    margin-bottom: 10px;
}

.logo img {
    width: 40px;
}

/* MENU */
.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

/* BOTONES */
.menu-btn {
    width: 55px;
    height: 55px;

    border-radius: 50%;
    border: none;

    background: #0f172a;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    color: #94a3b8;

    cursor: pointer;
    transition: all 0.3s ease;

    position: relative;
}

/* ICONOS */
.menu-btn i {
    color: #94a3b8;
    transition: 0.3s;
}

/* HOVER */
.menu-btn:hover {
    transform: translateY(-3px) scale(1.05);

    box-shadow:
        0 0 10px #0ea5e9,
        0 0 20px #22c55e;
}

.menu-btn:hover i {
    color: white;
}

/* ACTIVO */
.menu-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);

    box-shadow:
        0 0 10px #0ea5e9,
        0 0 20px #22c55e;
}

.menu-btn.active i {
    color: white;
}

/* TOOLTIP */
.menu-btn::after {
    content: attr(data-tooltip);
    position: absolute;

    left: 70px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);

    background: #020617;
    color: #e2e8f0;

    padding: 6px 12px;
    border-radius: 8px;

    font-size: 12px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;

    transition: 0.2s;
}

.menu-btn:hover::after {
    opacity: 1;
    left: 80px;
    transform: translateY(-50%) scale(1);
}

/* USER */
.sidebar-user {
    margin-top: auto;
    margin-bottom: 10px;
}

.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: 16px;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 14px;
    opacity: 0.9;
}

.card-top i {
    font-size: 18px;
}

.card h3 {
    font-size: 28px;
    margin-top: 15px;
}

/* COLORES */
.card-blue {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.card-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.card-orange {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.card-purple {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

/* FORMULARIO */
.form-container {
    background: linear-gradient(145deg, #020617, #0f172a);
    padding: 25px;
    border-radius: 18px;
    color: white;
    max-width: 800px;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid textarea {
    grid-column: span 2;
}

/* INPUTS */
.form-container input,
.form-container select,
.form-container textarea {
    background: #052e2b;
    border: 1px solid #0f766e;
    color: #d1fae5;

    padding: 12px;
    border-radius: 10px;

    transition: 0.2s;
}

/* FOCUS */
.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    outline: none;

    border: 1px solid #22c55e;

    box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

/* CHECKS */
.checks {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checks label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BOTÓN */
.btn-save {
    margin-top: 20px;
    padding: 14px;
    width: 100%;

    border: none;
    border-radius: 12px;

    background: linear-gradient(90deg, #0ea5e9, #22c55e);

    color: white;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s;
}

.btn-save:hover {
    transform: scale(1.02);

    box-shadow:
        0 0 10px #0ea5e9,
        0 0 20px #22c55e;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .modules {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .modules {
        grid-template-columns: 1fr;
    }
}