/* --- Bases --- */
body { font-family: 'Inter', sans-serif; }
.mono { font-family: 'Fira Code', monospace; }

/* --- Tokens y Colores --- */
.type-identified { color: #4ade80; font-weight: bold; text-shadow: 0 0 5px rgba(74, 222, 128, 0.3); } 
.type-number { color: #fca5a5; font-weight: bold; }
.type-symbol { color: #f87171; font-weight: bold; }
.type-emoji { color: #ffffff; font-weight: bold; }
.type-unknown { color: #64748b; }

.token-tag { 
    transition: all 0.2s ease; 
    cursor: pointer; 
}
.token-tag:hover { 
    background-color: #ffffff; 
    color: #b91c1c; 
    transform: translateY(-1px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
}

/* --- Componentes --- */
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: #0f172a; }
.custom-scroll::-webkit-scrollbar-thumb { background: #b91c1c; border-radius: 10px; }

.terminal-bg { background-color: #0f172a; border: 1px solid #1e293b; }
.glass-card { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); border: 1px solid rgba(226, 232, 240, 0.6); }

.btn-regreso { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-regreso:hover { background-color: #b91c1c; color: white; transform: translateX(-5px); }

.btn-icon {
    background-color: #b91c1c;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    font-size: 1.25rem;
}
.btn-icon:hover { background-color: white; color: #b91c1c; transform: scale(1.05); }

.btn-clear {
    color: #777BB4;
    transition: all 0.2s;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-clear:hover { color: #1f2937; border-color: #9ca3af; }

/* --- Autocompletado --- */
#autocomplete-list {
    position: absolute;
    z-index: 50;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    display: none;
}
.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.suggestion-item:hover, .suggestion-item.active {
    background-color: #fef2f2;
    color: #b91c1c;
    font-weight: bold;
}