/* ============================================
   STYLE.CSS - Robô Atendente Virtual
   COMPLETO - Chat + Admin + Editor Visual
   ============================================ */

/* ============================================
   RESET E BASE
   ============================================ */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #128C7E;
    -webkit-text-size-adjust: 100%;
}

/* ============================================
   CHAT - CONTAINER PRINCIPAL
   ============================================ */

.chat-container {
    width: 100%;
    height: 100%;
    max-height: 100%;
    background: #e5ddd5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Desktop: centraliza com limite */
@media (min-width: 769px) {
    body {
        background: #ffffff; /* cor do funco index.php */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
    }
    
    .chat-container {
        width: 100%;
        max-width: 480px;
        height: 92vh;
        max-height: 800px;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
}

/* ============================================
   CHAT - HEADER
   ============================================ */

.chat-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    height: 60px;
    min-height: 60px;
}

.avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    overflow: hidden;
}

/* Logo da empresa no avatar */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.header-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.header-info h3 {
    font-size: 20px; /* fonte do nome da empresa no index */
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.header-info .status {
    font-size: 20px; /* fonte status online */
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

/* ============================================
   CHAT - ÁREA DE MENSAGENS
   ============================================ */

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 14px;
    background: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

/* ============================================
   CHAT - MENSAGENS (ALINHADAS AO FUNDO)
   ============================================ */

.message {
    max-width: 85%;
    margin-bottom: 10px;
    animation: fadeIn 0.25s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 0;
}

/* ⭐ SEGREDO: margin-top auto na primeira mensagem empurra tudo pro fundo */
.message:first-child {
    margin-top: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    margin-left: auto;
}

.message-content {
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 20px; /* fonte mensagens do corpo de mesagens */
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message .message-content {
    background: white;
    color: #1a1a1a;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-message .message-content {
    background: #dcf8c6;
    color: #1a1a1a;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-content a {
    color: #128C7E;
    text-decoration: underline;
    word-break: break-all;
}

.message-content b, .message-content strong {
    font-weight: 700;
}

.message-image {
    margin-top: 8px;
}

.message-image img {
    max-width: 100%;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: block;
}

.message-time {
    font-size: 11px;
    color: #8e8e93;
    margin-top: 3px;
    padding: 0 3px;
}

.bot-message .message-time { 
    text-align: left; 
}

.user-message .message-time { 
    text-align: right; 
}

/* ============================================
   CHAT - INDICADOR DE DIGITAÇÃO
   ============================================ */

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #e5ddd5;
    flex-shrink: 0;
    min-height: 48px;
}

.typing-indicator .avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 20px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #8e8e93;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ============================================
   CHAT - ÁREA DE INPUT
   ============================================ */

.chat-input-area {
    display: flex;
    padding: 10px 12px;
    background: #f0f0f0;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    height: 60px;
    min-height: 60px;
    border-top: 1px solid #ddd;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 22px;
    font-size: 20px; /* fonte de onde digita a pergunda */
    outline: none;
    background: white;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.3;
}

.chat-input-area input::placeholder {
    color: #999;
    font-size: 20px; /* fonte de onde digita a pergunta*/
}

.chat-input-area button {
    width: 55px; /* tamanho do botão enviar*/
    height: 55px; /* tamanho do botão enviar*/
    min-width: 55px; /* tamanho do botão enviar*/
    border: none;
    border-radius: 50%;
    background: #25D366;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.chat-input-area button:active {
    transform: scale(0.92);
    background: #128C7E;
}

/* ============================================
   SCROLLBAR
   ============================================ */

.chat-messages::-webkit-scrollbar { 
    width: 4px; 
}

.chat-messages::-webkit-scrollbar-track { 
    background: transparent; 
}

.chat-messages::-webkit-scrollbar-thumb { 
    background: rgba(0,0,0,0.15); 
    border-radius: 2px; 
}

/* ============================================
   ADMIN - LOGIN
   ============================================ */

.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 { margin-bottom: 10px; color: #333; }
.login-box .robo-icon { font-size: 60px; margin-bottom: 20px; }
.login-box input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s;
}
.login-box input:focus {
    outline: none;
    border-color: #667eea;
}
.login-box button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}
.login-box button:hover { transform: translateY(-2px); }
.login-erro { color: #e74c3c; margin-top: 10px; }

/* ============================================
   ADMIN - SIDEBAR E PAINEL
   ============================================ */

.admin-body {
    background: #f5f7fa;
    font-family: 'Segoe UI', sans-serif;
}

.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    background: #2c3e50;
    color: white;
    padding: 30px 20px;
    overflow-y: auto;
}

.sidebar h2 { margin-bottom: 30px; text-align: center; font-size: 20px; }
.sidebar a {
    display: block;
    padding: 15px;
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 10px;
    margin: 5px 0;
    transition: all 0.3s;
    font-size: 15px;
}
.sidebar a:hover, .sidebar a.active {
    background: #34495e;
    color: white;
}
.sidebar .btn-sair {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    padding: 12px;
    background: #e74c3c;
    color: white;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
}

.main-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

/* Cards do dashboard */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.card h3 { color: #7f8c8d; font-size: 14px; margin-bottom: 10px; }
.card .numero { font-size: 36px; font-weight: bold; color: #2c3e50; }
.card .icone { font-size: 40px; float: right; margin-top: -10px; }

/* Tabela */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-collapse: collapse;
}
.admin-table th, .admin-table td { 
    padding: 15px; 
    text-align: left; 
    border-bottom: 1px solid #ecf0f1; 
}
.admin-table th { background: #34495e; color: white; font-weight: 600; }
.admin-table tr:hover { background: #f8f9fa; }

.status-ativo { color: #27ae60; font-weight: bold; }
.status-inativo { color: #e74c3c; }

.btn-acao {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    margin-right: 5px;
    display: inline-block;
}
.btn-editar { background: #3498db; color: white; }
.btn-excluir { background: #e74c3c; color: white; }

.btn-nova {
    display: inline-block;
    padding: 12px 25px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tag-texto { background: #3498db; color: white; }
.tag-imagem { background: #9b59b6; color: white; }

.preview-resposta {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #555;
}

/* ============================================
   ADMIN - FORMULÁRIOS
   ============================================ */

.admin-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.admin-form h1 { margin-bottom: 10px; color: #2c3e50; font-size: 24px; }
.admin-form .subtitulo { color: #7f8c8d; margin-bottom: 25px; font-size: 15px; }

.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #34495e; 
    font-size: 15px; 
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="color"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border 0.3s;
    font-family: 'Segoe UI', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.hint { 
    font-size: 13px; 
    color: #7f8c8d; 
    margin-top: 5px; 
    line-height: 1.4; 
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
.checkbox-group input { width: auto; }
.checkbox-group label { margin: 0; font-weight: normal; }

.botoes-form {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-salvar {
    padding: 14px 35px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}
.btn-salvar:hover { background: #219a52; }

.btn-voltar {
    padding: 14px 35px;
    background: #95a5a6;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    display: inline-block;
}

.btn-preview {
    padding: 14px 35px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.sucesso-msg {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

/* ============================================
   EDITOR VISUAL - TOOLBAR
   ============================================ */

.editor-wrap {
    position: relative;
    margin-bottom: 15px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    align-items: center;
}

.editor-toolbar button {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.editor-toolbar button:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-1px);
}

.editor-toolbar button:active {
    transform: scale(0.95);
}

.editor-toolbar .separador {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 3px;
}

.editor-toolbar .btn-texto {
    width: auto;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
}

/* Botões específicos de formatação */
.btn-bold { font-weight: bold; font-family: serif; }
.btn-italic { font-style: italic; font-family: serif; }
.btn-underline { text-decoration: underline; font-family: serif; }

/* Emoji picker */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    width: 280px;
    max-height: 220px;
    overflow-y: auto;
}

.emoji-picker.ativo {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.emoji-picker span {
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    text-align: center;
    border-radius: 6px;
    transition: background 0.2s;
    line-height: 1;
}

.emoji-picker span:hover { background: #f0f0f0; }

/* Textarea do editor */
.editor-texto {
    width: 100%;
    min-height: 160px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    font-family: 'Segoe UI', sans-serif;
    outline: none;
}

.editor-texto:focus {
    border-color: #3498db;
}

/* ============================================
   UPLOAD DE IMAGEM
   ============================================ */

.upload-area {
    padding: 25px;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.upload-area .icone-upload {
    font-size: 40px;
    margin-bottom: 10px;
}

.upload-area p {
    color: #555;
    font-size: 15px;
    margin-bottom: 5px;
}

.preview-img {
    max-width: 250px;
    max-height: 180px;
    border-radius: 10px;
    margin-top: 10px;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-img.visivel {
    display: block;
}

.img-status {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 8px;
}

/* ============================================
   PREVIEW DA RESPOSTA
   ============================================ */

.preview-box {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.preview-box h4 {
    color: #3498db;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.preview-conteudo {
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.preview-conteudo img {
    max-width: 300px;
    border-radius: 10px;
    margin-top: 10px;
}

/* ============================================
   CONFIGURAÇÕES - LOGO
   ============================================ */

.logo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
    margin-top: 10px;
    display: none;
}

.logo-preview.visivel {
    display: block;
}

.upload-logo {
    padding: 20px;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    background: #fafafa;
}

.upload-logo:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.upload-logo .icone-upload {
    font-size: 35px;
    margin-bottom: 8px;
}

.avatar-emoji {
    font-size: 24px;
    width: 60px;
    text-align: center;
    padding: 8px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    margin-top: 10px;
    max-width: 300px;
}

.emoji-grid button {
    padding: 10px;
    font-size: 20px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.emoji-grid button:hover {
    background: #f0f0f0;
}

/* ============================================
   RESPONSIVO - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Admin sidebar */
    .sidebar {
        width: 100%;
        position: relative;
        padding: 20px;
    }
    .sidebar .btn-sair {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 20px;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    /* Formulários */
    .admin-form {
        padding: 20px;
        border-radius: 12px;
    }
    .admin-form h1 {
        font-size: 20px;
    }
    .botoes-form {
        flex-direction: column;
    }
    .botoes-form button,
    .botoes-form a {
        width: 100%;
        text-align: center;
    }
    
    /* Tabela */
    .admin-table {
        font-size: 14px;
    }
    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
    
    /* Editor toolbar */
    .editor-toolbar button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .emoji-picker {
        width: 260px;
    }
    
    /* Cards */
    .cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PAISAGEM MOBILE
   ============================================ */

@media (max-height: 450px) and (orientation: landscape) {
    .chat-header {
        height: 48px;
        min-height: 48px;
        padding: 8px 12px;
    }
    .avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 20px;
    }
    .header-info h3 {
        font-size: 15px;
    }
    .chat-input-area {
        height: 52px;
        min-height: 52px;
        padding: 6px 10px;
    }
    .chat-input-area input {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        padding: 8px 12px;
        font-size: 15px;
    }
    .chat-input-area button {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }
}

/* ============================================
   MODO ESCURO (opcional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .chat-messages {
        background: #0b141a;
    }
    .bot-message .message-content {
        background: #202c33;
        color: #e9edef;
    }
    .user-message .message-content {
        background: #005c4b;
        color: #e9edef;
    }
    .chat-input-area {
        background: #1f2c34;
        border-top-color: #2a3942;
    }
    .chat-input-area input {
        background: #2a3942;
        color: #e9edef;
    }
    .chat-input-area input::placeholder {
        color: #8696a0;
    }
    .typing-indicator {
        background: #0b141a;
    }
    .message-time {
        color: #8696a0;
    }
}

/* ============================================
   REDUÇÃO DE MOVIMENTO
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .message { animation: none; }
    .typing-dots span { animation: none; opacity: 0.6; }
    .chat-input-area button { transition: none; }
}