/* ============================================
   BASE GENERAL — BOOH BRAIN
============================================ */

:root {
    --bb-bg: #060a12;
    --bb-bg-soft: #0b1018;
    --bb-card: #111827;
    --bb-text: #e7f0fa;
    --bb-muted: #8aa0b4;

    --bb-blue: #01bffe;
    --bb-pink: #fe00fd;
    --bb-green: #18c964;
    --bb-purple: #a970ff;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bb-bg);
    color: var(--bb-text);
}

a { color: inherit; text-decoration: none; }


/* ============================================
   LAYOUT PRINCIPAL
============================================ */

.dashboard-layout {
    display: flex;
    width: 100%;
}


/* ============================================
   SIDEBAR (DESKTOP)
============================================ */

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--bb-bg-soft);
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 28px 20px;
    box-sizing: border-box;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-links a {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--bb-text);
    font-size: 15px;
    transition: .2s;
}

.menu-links a:hover {
    background: rgba(255,255,255,0.05);
}

.menu-links a.active {
    background: rgba(1,191,254,0.20);
    color: var(--bb-blue);
    font-weight: 600;
}

.menu-title {
    margin: 16px 0 4px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.55;
}

.menu-separator {
    height: 1px;
    width: 100%;
    background: rgba(255,255,255,0.06);
    margin: 16px 0;
}


/* ============================================
   CONTENIDO PRINCIPAL
============================================ */

.dashboard-content {
    flex: 1;
    padding: 36px;
}

/* Header dentro del contenido */
.dashboard-header h1 {
    margin: 0;
    font-size: 26px;
}
.dashboard-header p {
    margin-top: 4px;
    color: var(--bb-muted);
}


/* ============================================
   CARDS & GRIDS
============================================ */

.card {
    background: var(--bb-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0px 4px 12px rgba(0,0,0,0.25);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content:center;
    margin-bottom: 10px;
    font-size: 20px;
}
.card-icon.green { background: rgba(24,201,100,0.18); color: var(--bb-green); }
.card-icon.blue { background: rgba(1,191,254,0.18); color: var(--bb-blue); }
.card-icon.pink { background: rgba(254,0,253,0.18); color: var(--bb-pink); }
.card-icon.purple { background: rgba(169,112,255,0.18); color: var(--bb-purple); }

.big-number {
    font-size: 26px;
    margin: 4px 0;
    font-weight: 700;
}

.card-tag {
    font-size: 12px;
    opacity: 0.6;
}

/* ==== GRID 3 ==== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 30px 0;
}

/* ==== GRID 2 ==== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 30px 0;
}


/* ============================================
   BLOQUES PEQUEÑOS (TP LINE, LISTS)
============================================ */

.tp-line {
    display:flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.alert-item {
    display:flex;
    gap:10px;
    padding: 8px 0;
    align-items:center;
}


/* ============================================
   MOBILE MENU (DESPLEGABLE)
============================================ */

.mobile-menu-wrapper {
    display: none;
    padding: 16px;
    background: var(--bb-bg-soft);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-toggle {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.20);
    color: var(--bb-text);
    font-size: 16px;
    cursor: pointer;
}

.mobile-menu-panel {
    display: none;
    flex-direction: column;
    background: #111827;
    margin-top: 10px;
    padding: 12px 0;
    border-radius: 10px;
}

.mobile-menu-panel a {
    padding: 12px 20px;
    display: block;
    color: var(--bb-text);
}

.mobile-menu-panel a.active {
    background: rgba(1,191,254,0.25);
    color: var(--bb-blue);
    font-weight: 600;
}

.mobile-menu-panel a:hover {
    background: rgba(255,255,255,0.06);
}

.mm-title {
    margin: 12px 20px 4px;
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
}


/* ============================================
   RESPONSIVE — BREAKPOINT 900px
============================================ */

@media (max-width: 900px) {

    /* Ocultamos sidebar */
    .sidebar {
        display: none !important;
    }

    /* Mostramos menú móvil */
    .mobile-menu-wrapper {
        display: block !important;
    }

    /* El contenido ocupa todo */
    .dashboard-content {
        padding: 20px;
    }

    /* Grids se apilan */
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MENÚ LATERAL DESKTOP
============================================ */
.side-menu {
    width: 230px;
    background: #0b1018;
    padding: 24px 20px;
    border-right: 1px solid rgba(255,255,255,0.04);
    min-height: 100vh;
    display: block;
}

.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-links a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #e5f0fa;
    font-size: 15px;
    transition: .2s;
}

.menu-links a:hover {
    background: rgba(255,255,255,0.06);
}

.menu-links a.active {
    background: rgba(1,191,254,0.25);
    color: #01bffe;
    font-weight: 600;
}

.menu-title {
    margin-top: 12px;
    font-size: 11px;
    opacity: 0.45;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-separator {
    margin: 10px 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* ============================================
   MENÚ MÓVIL (oculto por defecto)
============================================ */
.mobile-menu-simple {
    display: none;
    background: #0b1018;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu-btn {
    width: 100%;
    padding: 12px;
    background: #0b1018;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    font-size: 16px;
    color: #e7f0fa;
    cursor: pointer;
    text-align: left;
}

.mobile-menu-panel2 {
    display: none;
    padding: 12px 0;
    margin-top: 8px;
    border-radius: 14px;
    background: #0c121d;
}

.mobile-menu-panel2 a {
    display: block;
    padding: 10px 16px;
    color: #e7f0fa;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
}

.mobile-menu-panel2 a.active {
    background: rgba(1,191,254,0.25);
    color: #01bffe;
    font-weight: 600;
}

.mobile-menu-panel2 a:hover {
    background: rgba(255,255,255,0.06);
}

.mm-title {
    margin: 12px 16px 4px;
    font-size: 12px;
    opacity: .6;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ============================================
   RESPONSIVE <900px
============================================ */
@media (max-width: 900px) {

    /* ocultar sidebar */
    .side-menu {
        display: none !important;
    }

    /* activar menú móvil */
    .mobile-menu-simple {
        display: block !important;
    }
}

/* ============================================
   MENÚ: Desktop / Mobile
============================================ */

/* --- DESKTOP (>900px) --- */
.side-menu {
    display: block;
}

.mobile-menu-simple {
    display: none;
}

/* --- MOBILE (<900px) --- */
@media (max-width: 900px) {

    /* Ocultar menú lateral */
    .side-menu {
        display: none !important;
    }

    /* Mostrar menú móvil */
    .mobile-menu-simple {
        display: block !important;
        background: #0b1018;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu-btn {
        width: 100%;
        background: #0c121d;
        border: 1px solid rgba(255,255,255,0.12);
        padding: 14px;
        color: #e7f0fa;
        font-size: 16px;
        border-radius: 8px;
        text-align: left;
    }

    .mobile-menu-panel2 {
        display: none;
        flex-direction: column;
        background: #0c121d;
        margin-top: 10px;
        border-radius: 10px;
        padding: 10px 0;
    }

    .mobile-menu-panel2 a {
        padding: 12px 18px;
        display: block;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        border-radius: 6px;
    }

    .mobile-menu-panel2 a:hover {
        background: rgba(255,255,255,0.06);
    }

    .mm-title {
        padding: 8px 18px;
        opacity: 0.5;
        font-size: 12px;
        text-transform: uppercase;
        margin-top: 8px;
    }
}
