/* =========================================
   ESTILOS COMANDOS (KOYA LAYOUT + LOMM3 COLORS)
   ========================================= */

body {
    /* Usamos tu fondo oscuro principal */
    background-color: var(--bg-main); 
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    display: block !important; 
}

/* --- BARRA DE NAVEGACIÓN SUPERIOR (HEADER) --- */
.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 40px;
    background-color: transparent; /* Para que herede el bg-main */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Contenedor principal de los comandos */
.commands-container {
    display: flex;
    max-width: 1200px; /* Igualamos al ancho del bento-wrapper */
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}

/* --- BARRA LATERAL (CATEGORÍAS) --- */
.sidebar-categories {
    width: 260px;
    flex-shrink: 0;
}

/* Usamos el color de tus tarjetas (card-bg) */
.filter-section, .category-section {
    background-color: var(--card-bg); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; /* Más redondeado, estilo bento */
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sidebar-categories h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    background-color: rgba(108, 92, 231, 0.2);
    color: var(--accent-purple);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.filter-list, .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li, .category-list li {
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.filter-list li:hover, .category-list li:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    transform: translateX(4px);
}

/* El toque de color en la categoría activa */
.filter-list li.active, .category-list li.active {
    background-color: rgba(108, 92, 231, 0.1); 
    border-left: 3px solid var(--accent-purple);
    color: var(--accent-purple);
    font-weight: 700;
}

/* --- ÁREA PRINCIPAL (COMANDOS) --- */
.commands-content {
    flex-grow: 1;
}

.search-bar {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-bar i {
    color: var(--accent-purple);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

/* ACORDEÓN DE COMANDOS */
.commands-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cmd-accordion {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.cmd-accordion:hover {
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cmd-header {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.cmd-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.cmd-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Título con tu fuente gruesa */
.cmd-title {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.cmd-short-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cmd-icon {
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.cmd-accordion.open .cmd-icon {
    transform: rotate(180deg);
    color: var(--accent-purple);
}

/* CONTENIDO DESPLEGABLE */
.cmd-body {
    display: none;
    padding: 0 24px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 10px;
    padding-top: 20px;
}

.cmd-accordion.open .cmd-body {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.cmd-body h5 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

/* Estilo para el comando (Similar a tu .console-tag) */
.cmd-usage {
    background-color: var(--bg-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.cmd-param-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cmd-param-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 2px solid var(--accent-purple);
}

.cmd-param-name {
    color: var(--text-primary);
    font-weight: 700;
    margin-right: 8px;
}

/* Animación sutil al abrir */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .commands-container {
        flex-direction: column;
    }
    .sidebar-categories {
        width: 100%;
    }
}