﻿:root {
    --primary: #0d6efd;
    --bg: var(--bs-body-bg);
    --sidebar: var(--bs-card-bg);
    --shield: #198754;
    --sidebar-width: 250px;
    /* Reduced width */
    --border-color: var(--bs-border-color);
    --text-main: var(--bs-body-color);
    --text-muted: var(--bs-secondary-color);
}

.content-area {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    padding: 0 !important;
}

.assistant-container {
    display: flex;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg);
}

.assistant-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar);
    padding: 15px;
    /* Reduced padding */
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    position: relative;
}

.btn-back-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: var(--sidebar);
    transition: 0.2s;
    text-decoration: none;
    margin-bottom: 15px;
}


.btn-back-circle:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    /* Compact padding */
    margin-bottom: 2px;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
    font-size: 0.85rem;
}

.step-item i {
    margin-right: 8px;
    font-size: 1rem;
}

.step-item:hover {
    background: var(--bs-tertiary-bg);
    color: var(--primary);
}

.step-item.active {
    background: rgba(13, 110, 253, 0.15);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.step-item.shield-active {
    background: rgba(25, 135, 84, 0.15);
    color: var(--shield);
    border-left: 3px solid var(--shield);
}

/* Estilo especial para el botÃ³n de GestiÃ³n de Routers (sin nÃºmero) */
.step-item.router-first {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.1));
    border: 1px solid var(--primary);
    border-left: 4px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.2);
}

.step-item.router-first:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3), rgba(13, 110, 253, 0.2));
    transform: translateX(3px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.step-item.router-first.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3), rgba(13, 110, 253, 0.2));
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
}

.step-item.router-first::before {
    content: "âš ï¸ ";
    margin-right: 5px;
    font-size: 1rem;
}

.main-content-assistant {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.setup-card {
    background: var(--sidebar);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    /* Allow full width */
    margin: 0 auto;
    height: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-mini {
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 5px;
}

.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#content-area.wizard-mode {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    max-width: 100%;
}

.table {
    color: var(--text-main);
    font-size: 0.85rem;
}

.table-light {
    --bs-table-bg: var(--bs-tertiary-bg);
    --bs-table-color: var(--text-main);
}

.table thead th {
    position: sticky;
    top: 0;
    background: var(--bs-tertiary-bg);
    z-index: 5;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 10px;
}

/* Sticky headers */

.x-small {
    font-size: 0.75rem;
}

.dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* Estilos para el editor visual */
#visual-editor-iframe {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.btn-group .btn.active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

#prorroga-controls .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

#visual-editor-wrapper {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* --- RESPONSIVIDAD PARA MÃ“VILES --- */
/* 992 media query disabled */
