* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.chat-header {
    background-color: #1a1a1a;
    color: white;
    padding: 20px;
    text-align: center;
}

.chat-header h2 { font-size: 1.2rem; margin-bottom: 5px; }
.chat-header p { font-size: 0.9rem; color: #cccccc; }

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #efeae2; /* Color clásico de fondo de chat */
}

.message {
    max-width: 80%;
    display: flex;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background-color: #d9fdd3;
    border-radius: 15px 15px 0 15px;
}

.bot-message {
    align-self: flex-start;
}

.bot-message .message-content {
    background-color: #ffffff;
    border-radius: 15px 15px 15px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-content {
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.4;
}

/* Estilos para las fotos generadas por Markdown */
.message-content img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    background-color: #f0f2f5;
}

#user-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
}

#send-btn {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 0 20px;
    margin-left: 10px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

#send-btn:hover { background-color: #333333; }

/* Ajuste profesional para listas generadas por Markdown */
.message-content ul, 
.message-content ol {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 20px; /* Reducimos el padding por defecto del navegador */
}

.message-content li {
    margin-bottom: 4px;
    line-height: 1.4;
}