¡Excelente! Ya tenemos el esqueleto. Ahora vamos a vestirlo con un diseño súper elegante (Modo Oscuro, cristal esmerilado y animaciones suaves).

3. Crear el archivo de diseño (styles.css)
Abre el editor para crear la hoja de estilos:

bash
nano ~/rag-portal/frontend/dist/styles.css
Copia todo este código CSS y pégalo adentro. Verás que le puse detalles muy finos como botones flotantes, sombras luminosas y una barra indicadora de que está "pensando":

css
:root {
    --bg-color: #0f1115;
    --chat-bg: #16181d;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #2d3139;
    --user-msg-bg: #2563eb;
    --sys-msg-bg: #1e2128;
    --glass-bg: rgba(22, 24, 29, 0.75);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    height: 100vh;
    background-image: radial-gradient(circle at 50% 0%, #1e2536 0%, transparent 60%);
}
.app-container {
    width: 100%;
    max-width: 900px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--chat-bg);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}
/* Cabecera */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}
.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-container {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
h1 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}
.subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.status-indicator {
    font-size: 0.85rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}
.pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
}
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
/* Área de Chat */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scroll-behavior: smooth;
}
.chat-container::-webkit-scrollbar { width: 6px; }
.chat-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
.message {
    display: flex;
    gap: 15px;
    max-width: 85%;
    animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.system-message .avatar {
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid var(--border-color);
}
.user-message .avatar {
    background: var(--primary-color);
    color: white;
}
.message-content {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.system-message .message-content {
    background: var(--sys-msg-bg);
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}
.user-message .message-content {
    background: var(--user-msg-bg);
    color: white;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}
/* Fuentes / Documentos referenciados */
.sources-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.source-card {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-muted);
}
.source-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}
.relevance-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}
/* Animación de "Pensando..." */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px 0;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
/* Barra inferior de escritura */
.input-container {
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
}
.input-wrapper {
    display: flex;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 6px 6px 6px 20px;
    transition: all 0.3s;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.3);
}
.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
#user-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}
#user-input::placeholder { color: #4b5563; }
#send-button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}
#send-button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}
#send-button:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}
.footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 12px;
}
