:root {
    --fondo: #0f0f10;
    --fondo-secundario: #18181b;
    --fondo-terciario: #232326;
    --borde: #2f2f35;
    --texto: #f5f5f5;
    --texto-secundario: #b8b8c0;
    --acento: #00c853;
    --acento-hover: #00e676;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.35);
    --radio: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--fondo);
    color: var(--texto);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
    text-decoration: none;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #111214 0%, #191a1e 100%);
    border-right: 1px solid var(--borde);
    padding: 20px 16px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1100;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.logo-text {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--acento);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--texto-secundario);
    padding: 14px 16px;
    border-radius: 14px;
    transition: all 0.25s ease;
    font-size: 0.98rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.activo {
    background-color: rgba(0, 200, 83, 0.12);
    color: var(--texto);
    border: 1px solid rgba(0, 200, 83, 0.25);
}

.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 80px;
    border-bottom: 1px solid var(--borde);
    background-color: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.titulo-modulo {
    font-size: 1.5rem;
    font-weight: 700;
}

.usuario-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--texto-secundario);
    background-color: var(--fondo-terciario);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--borde);
}

.contenido-principal {
    flex: 1;
    padding: 24px;
}

.footer-app {
    border-top: 1px solid var(--borde);
    padding: 16px 24px;
    color: var(--texto-secundario);
    background-color: #121316;
}

.panel-bienvenida,
.modulo-box,
.panel-card {
    background-color: var(--fondo-secundario);
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
}

.panel-bienvenida,
.modulo-box {
    padding: 24px;
}

.panel-bienvenida h2,
.modulo-box h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

.panel-bienvenida p,
.modulo-box p {
    color: var(--texto-secundario);
    margin-bottom: 0;
}

.panel-card .card-body {
    padding: 22px;
}

.panel-card h5 {
    color: var(--texto-secundario);
    margin-bottom: 12px;
    font-size: 1rem;
}

.numero-panel {
    font-size: 2rem;
    font-weight: 700;
    color: var(--acento);
    margin: 0;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.activa {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 1090;
    }

    .sidebar-backdrop.activo {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        padding: 0 16px;
    }

    .contenido-principal {
        padding: 16px;
    }

    .titulo-modulo {
        font-size: 1.2rem;
    }
    .table td,
.table th {
    vertical-align: middle;
}

.tabla-clientes {
    table-layout: fixed;
    width: 100%;
}

.tabla-clientes td {
    word-wrap: break-word;
    white-space: normal;
}
}