body {
    margin: 0;
    background: #f4f6f9;
    font-family: "Inter", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Main Container */
.chat-container {
    width: 420px;
    height: 600px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.chat-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
    background: white;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
}

.header-info h3 {
    margin: 0;
    font-size: 16px;
}

.status {
    font-size: 12px;
    color: #10b981;
}

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafb;
}

/* Messages */
.message {
    max-width: 75%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.2s ease-in-out;
}

.user {
    background: #2563eb;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.assistant {
    background: white;
    border: 1px solid #e5e7eb;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.typing {
    font-style: italic;
    opacity: 0.6;
}

/* Input Area */
.chat-input-area {
    display: flex;
    padding: 14px;
    border-top: 1px solid #eee;
    background: white;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 30px;
    padding: 10px 16px;
    outline: none;
    font-size: 14px;
}

.chat-input-area input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.chat-input-area button {
    margin-left: 10px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.chat-input-area button:hover {
    background: #1e40af;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/*microfono*/
#micBtn {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    margin-right: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

#micBtn:hover {
    background: #e5e7eb;
}

#micBtn.listening {
    background: #ef4444;
    color: white;
}