* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: #e5e7eb;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: #d1d5db;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid #ccc;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-chat-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.new-chat-btn:hover {
    background-color: #2563eb;
}

.tone-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tone-selector label {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.tone-selector select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
}

.chat-history h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #374151;
}

.chat-history ul {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.chat-history li {
    padding: 10px;
    margin-bottom: 5px;
    background-color: #e5e7eb;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-history li:hover {
    background-color: #d1d5db;
}

/* 脕rea de chat */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9fafb; /* Blanco suave para el fondo del 谩rea de chat */
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #e5e7eb;
    border-bottom: 1px solid #ccc;
}

.chat-header h1 {
    font-size: 24px;
    color: #374151;
}

.logout-btn {
    background-color: #ef4444; /* Rojo para el bot贸n de cerrar sesi贸n */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #dc2626;
}

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9fafb; /* Blanco suave */
}

.message {
    margin-bottom: 20px;
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.user {
    background-color: #3b82f6; /* Azul claro para los mensajes del usuario */
    color: white;
    margin-left: auto;
    text-align: right;
}

.message.ai {
    background-color: #e5e7eb; /* Gris claro para los mensajes de la IA */
    color: #374151;
    margin-right: auto;
}

.chat-input {
    display: flex;
    padding: 20px;
    background-color: #e5e7eb;
    border-top: 1px solid #ccc;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.chat-input button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.chat-input button:hover {
    background-color: #2563eb;
}

/* Añadir al final del archivo style.css */

/* Estilo para cada elemento del historial */
.chat-history li {
    padding: 10px;
    margin-bottom: 5px;
    background-color: #e5e7eb;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.chat-history li:hover {
    background-color: #d1d5db;
}

.chat-title {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
}

.chat-device {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.message.assistant h1, .message.assistant h2, .message.assistant h3 {
    font-family: 'Roboto', sans-serif;
    color: #374151;
    margin: 10px 0;
}

.message.assistant strong {
    font-weight: 500;
}

.message.assistant ul, .message.assistant ol {
    margin: 10px 0;
    padding-left: 20px;
}

.message.assistant li {
    margin: 5px 0;
    color: #374151;
}

.model-name {
    font-size: 0.8em;
    color: #6b7280; /* Gris claro para diferenciarlo */
    font-weight: 400;
}

.chat-input {
    display: flex;
    padding: 20px;
    background-color: #e5e7eb;
    border-top: 1px solid #ccc;
    gap: 10px;
    align-items: center;
}

.chat-input input[type="file"] {
    flex: 0 0 auto;
    font-size: 14px;
}

.chat-input input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.chat-input button#send-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.chat-input button#send-btn:hover {
    background-color: #2563eb;
}

.chat-input button#image-gen-btn {
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button#image-gen-btn::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="black" viewBox="0 0 16 16"><path d="M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/><path d="M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1h12z"/></svg>');
}

.chat-input button#image-gen-btn.active {
    background-color: #3b82f6;
}

.chat-input button#image-gen-btn.active::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 16 16"><path d="M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"/><path d="M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1h12z"/></svg>');
}