/* ProspectX — estilos sobre Bootstrap 5 (tema dark SaaS) */

:root {
    --px-bg: #0f1115;
    --px-surface: #171a21;
    --px-surface-2: #1e222b;
    --px-border: #2a2f3a;
    --px-accent: #2563eb;
    --px-sidebar-w: 248px;
}

body {
    min-height: 100vh;
}

/* ---- Marca (logos sobre panel claro: el wordmark es navy) ---- */
.px-logo-panel {
    display: inline-block;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.4rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.px-login-logo {
    display: block;
    width: 100%;
    max-width: 230px;
    height: auto;
}
.px-brand-logo-wrap {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: .55rem .75rem;
    text-decoration: none;
}
.px-brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Login ---- */
.px-guest {
    min-height: 100vh;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(37, 99, 235, .18), transparent),
        var(--px-bg);
    padding: 1.5rem;
}

/* ---- Layout app ---- */
.px-app { background: var(--px-bg); }

.px-layout {
    display: flex;
    min-height: 100vh;
}

.px-sidebar {
    width: var(--px-sidebar-w);
    flex: 0 0 var(--px-sidebar-w);
    background: var(--px-surface);
    border-right: 1px solid var(--px-border);
    padding: 1rem .75rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.px-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    padding: .4rem .5rem 1rem;
}

.px-nav { display: flex; flex-direction: column; gap: 2px; }

.px-nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    border-radius: 8px;
    color: #aab2c0;
    text-decoration: none;
    font-size: .925rem;
    transition: background .12s, color .12s;
}
.px-nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.px-nav-link:hover { background: var(--px-surface-2); color: #fff; }
.px-nav-link.is-active { background: var(--px-accent); color: #fff; }

.px-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.px-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.5rem;
    background: var(--px-surface);
    border-bottom: 1px solid var(--px-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.px-content { padding: 1.5rem; }

.px-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.25rem;
}

.card { border-radius: .75rem; background: var(--px-surface); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .px-sidebar {
        position: fixed;
        z-index: 1040;
        transform: translateX(-100%);
        transition: transform .2s;
    }
    .px-sidebar.is-open { transform: translateX(0); }
}
