/* ========================= */
/* BASE LIMPIO */
/* ========================= */

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #020617;
    color: #e5e7eb;
}

/* fondo */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(11,18,32,0.8), rgba(11,18,32,0.95)),
        url('/dashboard/assets/bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* ========================= */
/* HEADER */
/* ========================= */

.modules-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
}

/* LOGO IZQUIERDA */
.modules-header img {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 130px;
}
/* ========================= */
/* TITULO */
/* ========================= */

.modules-title {
    text-align: center;
    font-size: 24px;
    color: #38bdf8;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(56,189,248,0.5);
}

/* ========================= */
/* CONTENEDOR */
/* ========================= */

.modules-container {
    width: 100%;
    max-width: 1700px;
    margin: auto;
    padding: 10px 20px;
    overflow-x: auto;
}

/* ========================= */
/* TABLA PRO FULL */
/* ========================= */

.modules-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;

    background: rgba(17,24,39,0.95);
    backdrop-filter: blur(6px);

    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 0 25px rgba(0,0,0,0.7),
        inset 0 0 10px rgba(255,255,255,0.02);
}

/* HEADER */
.modules-table thead {
    background: #020617;
}

.modules-table th {
    padding: 12px;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
}

/* FILAS */
.modules-table td {
    padding: 12px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ZEBRA */
.modules-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

/* HOVER */
.modules-table tr:hover {
    background: rgba(56,189,248,0.08);
    transition: 0.2s;
}

/* MODULO */
.modules-table td:nth-child(1) {
    font-size: 16px;
    font-weight: bold;
    color: #22c55e;
}

/* NOMBRE */
.modules-table td:nth-child(2) {
    text-align: left;
    color: #38bdf8;
    font-weight: 600;
}

/* USERS */
.modules-users {
    color: #22c55e;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(34,197,94,0.6);
}

/* ========================= */
/* FOOTER */
/* ========================= */

.modules-footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid #1f2937;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 768px){

    .modules-title {
        font-size: 18px;
    }

    .modules-table {
        min-width: 900px;
    }

    .modules-table th,
    .modules-table td {
        font-size: 11px;
        padding: 6px;
    }

}




/* ========================= */
/* HEADER PRO CARD */
/* ========================= */

.main-header {
    position: relative;
    height: 90px;
    padding: 0 20px;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(17,24,39,0.7);
    backdrop-filter: blur(6px);

    border-bottom: 1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 0 15px rgba(0,0,0,0.6),
        inset 0 0 8px rgba(255,255,255,0.02);
}

/* LOGO IZQUIERDA */
.header-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    height: 100px;

    filter: drop-shadow(0 0 8px #38bdf8);
}

/* TITULO CENTRADO */
.modules-title {
    font-size: 22px;
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56,189,248,0.6);
}



/* ========================= */
/* NAV PRO (MENU) */
/* ========================= */

.modules-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 20px 0;
}

/* BOTONES */
.modules-nav a {
    padding: 8px 16px;
    background: rgba(17,24,39,0.7);
    border-radius: 8px;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 13px;

    border: 1px solid rgba(255,255,255,0.05);

    backdrop-filter: blur(6px);

    transition: all 0.2s ease;
}

/* HOVER */
.modules-nav a:hover {
    background: rgba(56,189,248,0.15);
    color: #38bdf8;

    box-shadow: 0 0 10px rgba(56,189,248,0.4);
    transform: translateY(-1px);
}

/* ACTIVO */
.modules-nav a.active {
    background: rgba(34,197,94,0.15);
    color: #22c55e;

    box-shadow: 0 0 10px rgba(34,197,94,0.5);
}

/* RESPONSIVE */
@media(max-width:768px){
    .modules-nav{
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}



.modules-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
}





