/* Solo2 - Main Styles */
/* Sistema de temas dinámico */

/* ============================================================
   THEME SYSTEM
   ============================================================ */

/* Default: Dark (Indigo) */
:root, [data-theme="dark"] {
    --bg-dark: #0f172a;      /* slate-900 */
    --bg-primary: #1e1b4b;   /* indigo-950 */
    --bg-secondary: #1e3a5f; /* blue-900 tinted */
    --accent: #6366f1;       /* indigo-500 */
    --accent-dark: #4f46e5;  /* indigo-600 */
    --accent-light: #818cf8; /* indigo-400 */
    --text-primary: #ffffff;
    --text-secondary: #a5b4fc;
    --text-muted: #6b7280;
    --card-bg: rgba(255,255,255,0.05);
    --card-border: rgba(255,255,255,0.1);
    --input-bg: rgba(255,255,255,0.1);
    --input-border: rgba(255,255,255,0.2);
}

/* Light theme */
[data-theme="light"] {
    --bg-dark: #f8fafc;      /* slate-50 */
    --bg-primary: #e0e7ff;   /* indigo-100 */
    --bg-secondary: #c7d2fe; /* indigo-200 */
    --accent: #4f46e5;       /* indigo-600 */
    --accent-dark: #4338ca;  /* indigo-700 */
    --accent-light: #6366f1; /* indigo-500 */
    --text-primary: #1e1b4b;
    --text-secondary: #4338ca;
    --text-muted: #6b7280;
    --card-bg: rgba(255,255,255,0.8);
    --card-border: rgba(79,70,229,0.2);
    --input-bg: rgba(255,255,255,0.9);
    --input-border: rgba(79,70,229,0.3);
}

/* Blue theme */
[data-theme="blue"] {
    --bg-dark: #0c1929;      /* dark navy */
    --bg-primary: #0f2942;   /* deep blue */
    --bg-secondary: #1a3a5c; /* blue */
    --accent: #3b82f6;       /* blue-500 */
    --accent-dark: #2563eb;  /* blue-600 */
    --accent-light: #60a5fa; /* blue-400 */
    --text-primary: #ffffff;
    --text-secondary: #93c5fd;
    --text-muted: #64748b;
    --card-bg: rgba(255,255,255,0.05);
    --card-border: rgba(59,130,246,0.2);
    --input-bg: rgba(255,255,255,0.1);
    --input-border: rgba(59,130,246,0.3);
}

/* Solarized theme */
[data-theme="solarized"] {
    --bg-dark: #002b36;      /* base03 */
    --bg-primary: #073642;   /* base02 */
    --bg-secondary: #094452; /* base02 lighter */
    --accent: #2aa198;       /* cyan */
    --accent-dark: #268bd2;  /* blue */
    --accent-light: #93a1a1; /* base1 */
    --text-primary: #fdf6e3; /* base3 */
    --text-secondary: #93a1a1;
    --text-muted: #657b83;
    --card-bg: rgba(7,54,66,0.8);
    --card-border: rgba(42,161,152,0.3);
    --input-bg: rgba(0,43,54,0.8);
    --input-border: rgba(42,161,152,0.4);
}

* { box-sizing: border-box; }

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Light theme overrides for Tailwind classes */
[data-theme="light"] .text-white { color: var(--text-primary) !important; }
[data-theme="light"] .text-indigo-300 { color: var(--text-secondary) !important; }
[data-theme="light"] .text-indigo-400 { color: var(--text-muted) !important; }
[data-theme="light"] .text-indigo-500 { color: #6366f1 !important; }
[data-theme="light"] .bg-indigo-950\/50 { background: rgba(224, 231, 255, 0.8) !important; }
[data-theme="light"] .bg-indigo-950\/30 { background: rgba(224, 231, 255, 0.5) !important; }
[data-theme="light"] .bg-indigo-900\/20 { background: rgba(224, 231, 255, 0.3) !important; }
[data-theme="light"] .bg-indigo-900\/30 { background: rgba(224, 231, 255, 0.4) !important; }
[data-theme="light"] .bg-indigo-900\/50 { background: rgba(224, 231, 255, 0.6) !important; }
[data-theme="light"] .border-white\/10 { border-color: rgba(79, 70, 229, 0.2) !important; }
/* Light theme - Command Center colors with better contrast */
[data-theme="light"] .text-green-400 { color: #15803d !important; }
[data-theme="light"] .text-yellow-400 { color: #a16207 !important; }
[data-theme="light"] .text-amber-400 { color: #b45309 !important; }
[data-theme="light"] .text-emerald-400 { color: #059669 !important; }
[data-theme="light"] .text-red-400 { color: #dc2626 !important; }
/* Light theme - Panel backgrounds */
[data-theme="light"] .bg-white\/5 { background: rgba(79, 70, 229, 0.08) !important; }
[data-theme="light"] .bg-white\/10 { background: rgba(79, 70, 229, 0.12) !important; }
[data-theme="light"] .bg-indigo-950 { background: var(--bg-primary) !important; }
[data-theme="light"] .bg-indigo-900\/30 { background: rgba(199, 210, 254, 0.5) !important; }
[data-theme="light"] .bg-indigo-950\/30 { background: rgba(199, 210, 254, 0.4) !important; }

/* Views */
.view {
    display: none !important;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent 200vw container from leaking */
}
.view.active { 
    display: flex !important; 
}

#view-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
}

/* Effects */
.glow { box-shadow: 0 0 40px rgba(99, 102, 241, 0.3); }

/* Form elements */
.input-field {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, background 0.3s;
    font-size: 14px;
}
.input-field::placeholder { color: var(--text-secondary); }
.input-field:focus { border-color: var(--accent); }

/* Buttons */
.btn-primary {
    width: 100%;
    background: var(--accent-dark);
    color: white;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}
.btn-primary:hover { background: var(--accent); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    width: 100%;
    background: rgba(99, 102, 241, 0.2);
    color: white;
    font-weight: 600;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}
.btn-secondary:hover { background: rgba(99, 102, 241, 0.4); }

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--card-border);
    transition: background 0.3s, border-color 0.3s;
}

.card-compact {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--card-border);
    transition: background 0.3s, border-color 0.3s;
}

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.spinner {
    width: 16px; height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.spinner-small {
    width: 12px; height: 12px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 90vw;
    width: 320px;
}

.toast {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 15px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.toast-success { background: #059669; color: white; }
.toast-error { background: #dc2626; color: white; border: 2px solid #fca5a5; }
.toast-info { background: var(--accent-dark); color: white; }

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

/* Responsive: Desktop layout */
@media (min-width: 768px) {
    .home-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 800px;
    }
}

/* Mobile: Stack vertically */
@media (max-width: 767px) {
    .home-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================================
   DUAL-PANE LAYOUT
   ============================================================ */

/* Desktop: Sidebar + Main side by side */
@media (min-width: 768px) {
    .view.dual-pane.active {
        display: grid !important;
        grid-template-columns: 280px 1fr;
        height: 100vh;
        height: 100dvh;
    }
    .sidebar {
        display: flex !important;
        flex-direction: column;
    }
    .mobile-only { display: none !important; }
}

/* Mobile: Stack, sidebar hidden by default */
@media (max-width: 767px) {
    .view.dual-pane.active {
        display: flex !important;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
    }
    .sidebar {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999;
        background: var(--bg-primary, #1e1b4b) !important; /* Fondo dinámico del tema */
        /* Sin backdrop-filter para evitar problemas iOS */
    }
    .sidebar.open {
        display: flex !important;
        flex-direction: column;
        animation: slideInLeft 0.2s ease;
    }
    .desktop-only { display: none !important; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* ============================================================
   CONNECTION STATE INDICATORS
   ============================================================ */

.connection-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.connection-disconnected {
    background: #6b7280;
}

.connection-connecting {
    background: #eab308;
    animation: pulse 1.5s ease-in-out infinite;
}

.connection-connected-p2p {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.connection-connected-relay {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* ============================================================
   RADAR PULSE ANIMATION (El Duende)
   ============================================================ */

@keyframes radar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.radar-pulse {
    animation: radar-pulse 2s ease-out infinite;
}

/* ============================================================
   TUNNEL LIST ITEMS
   ============================================================ */

.tunnel-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tunnel-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.tunnel-item.selected {
    background: rgba(99, 102, 241, 0.25);
    border-left: 3px solid var(--accent);
}

.tunnel-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tunnel-online { background: #22c55e; }
.tunnel-offline { background: #6b7280; }

/* ============================================================
   MESSAGE ANIMATIONS
   ============================================================ */

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-enter {
    animation: messageSlideIn 0.2s ease;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #a78bfa;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

.modal-content {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ============================================================
   ORACLE (Waiting State)
   ============================================================ */

.oracle-container {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.oracle-icon {
    font-size: 3rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
}

.oracle-proverb {
    font-style: italic;
    color: #c4b5fd;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* ============================================================
   TOOLTIPS EDUCATIVOS
   ============================================================ */

.tooltip-edu {
    position: relative;
    cursor: help;
}

.tooltip-edu::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: normal;
    line-height: 1.4;
    max-width: 280px;
    min-width: 200px;
    white-space: normal;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 1px solid var(--card-border);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.tooltip-edu::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--bg-secondary);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.tooltip-edu:hover::after,
.tooltip-edu:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Tooltip posicionado a la izquierda para elementos cerca del borde derecho */
.tooltip-edu.tooltip-left::after {
    left: auto;
    right: 0;
    transform: none;
}

.tooltip-edu.tooltip-left::before {
    left: auto;
    right: 12px;
    transform: none;
}

/* ============================================================
   TYPING INDICATOR
   ============================================================ */

.typing-dots {
    display: inline-flex;
    gap: 2px;
}

.typing-dots .dot {
    animation: typing-bounce 1.4s infinite ease-in-out both;
    font-weight: bold;
}

.typing-dots .dot:nth-child(1) { animation-delay: 0s; }
.typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* ============================================================
   ETERNAL MESSAGES (La Bóveda)
   ============================================================ */

.msg-eternal {
    border: 2px solid var(--accent-light) !important;
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 0.75rem;
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .msg-eternal {
        box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
    }
}

.eternal-indicator {
    animation: eternal-shimmer 2s ease-in-out infinite;
    color: var(--accent-light) !important;
}

@keyframes eternal-shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Autodestruct compact selector */
.autodestruct-compact {
    min-width: 48px;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 24px;
}

/* ============================================================
   LOBBY DE CONEXIÓN - EXPERIENCIA INMERSIVA
   ============================================================ */

/* Contenedor del lobby que ocupa todo el espacio disponible */
.lobby-fullscreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Fondo con gradiente que "respira" */
.lobby-fullscreen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(99, 102, 241, 0.05) 50%,
        transparent 70%
    );
    animation: lobby-breathe 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lobby-breathe {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Radar mejorado - más grande y protagonista */
.lobby-radar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    animation: radar-pulse-enhanced 2s ease-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes radar-pulse-enhanced {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7),
                    0 0 40px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 0 25px rgba(99, 102, 241, 0),
                    0 0 60px rgba(99, 102, 241, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0),
                    0 0 40px rgba(99, 102, 241, 0.3);
    }
}

/* Estado conectado - transformación satisfactoria */
.lobby-radar.connected {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    animation: connected-celebrate 0.6s ease-out forwards;
}

@keyframes connected-celebrate {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Mensajes del Duende con entrada escalonada */
.lobby-message {
    text-align: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.lobby-message-main {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0;
    animation: message-fade-in 0.5s ease-out forwards;
}

.lobby-message-sub {
    font-size: 0.9rem;
    font-style: italic;
    color: #c4b5fd;
    margin-top: 0.75rem;
    opacity: 0;
    animation: message-fade-in 0.5s ease-out 0.3s forwards;
}

@keyframes message-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transición al ocultar el lobby */
.lobby-exit {
    animation: lobby-fade-out 0.4s ease-out forwards;
}

@keyframes lobby-fade-out {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* ============================================================
   TRANSICIONES SUAVES - SIDEBAR ↔ CHAT
   ============================================================ */

/* Contenedor de transición para móvil */
@media (max-width: 767px) {
    .sidebar {
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .sidebar:not(.open) {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-20px);
    }

    .sidebar.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        animation: none; /* Override slideInLeft */
    }
}

/* Chat area transitions */
.chat-area-transition {
    transition: opacity 0.3s ease;
}

/* ============================================================
   ESTADOS TÁCTILES - FEEDBACK INMEDIATO
   ============================================================ */

/* Túneles con feedback táctil */
.tunnel-item {
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.tunnel-item:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(99, 102, 241, 0.25);
}

/* Botones con feedback */
.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

/* Touch feedback para elementos interactivos */
.touch-feedback {
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.touch-feedback:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Header buttons */
.header-btn {
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.header-btn:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   LISTA DE TÚNELES - ANIMACIÓN DE ENTRADA
   ============================================================ */

.tunnel-list-enter .tunnel-item {
    opacity: 0;
    transform: translateX(-10px);
    animation: tunnel-slide-in 0.25s ease-out forwards;
}

.tunnel-list-enter .tunnel-item:nth-child(1) { animation-delay: 0s; }
.tunnel-list-enter .tunnel-item:nth-child(2) { animation-delay: 0.05s; }
.tunnel-list-enter .tunnel-item:nth-child(3) { animation-delay: 0.1s; }
.tunnel-list-enter .tunnel-item:nth-child(4) { animation-delay: 0.15s; }
.tunnel-list-enter .tunnel-item:nth-child(5) { animation-delay: 0.2s; }
.tunnel-list-enter .tunnel-item:nth-child(n+6) { animation-delay: 0.25s; }

@keyframes tunnel-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   MEJORAS VISUALES GENERALES
   ============================================================ */

/* Sombra interna sutil para el panel de chat en desktop */
@media (min-width: 768px) {
    #chat-area {
        box-shadow: inset 3px 0 10px rgba(0, 0, 0, 0.1);
    }
}

/* Smooth scroll para mensajes */
#chat-messages {
    scroll-behavior: smooth;
}

/* Mejora del indicador de conexión */
.connection-dot {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
