* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Botão flutuante para abrir o chat - LADO ESQUERDO */
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;  /* Mudado de right para left */
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.6);
}

.chat-toggle-btn img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.chat-toggle-btn .chat-icon {
    font-size: 24px;
    color: white;
}

/* Container do chat flutuante - LADO ESQUERDO */
.chat-container {
    position: fixed;
    bottom: 90px;
    left: 20px;  /* Mudado de right para left */
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    animation: slideUp 0.3s ease;
}

.chat-container.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.chat-header h1 {
    font-size: 18px;
    margin-bottom: 3px;
}

.chat-header p {
    opacity: 0.9;
    font-size: 12px;
}

.chat-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 15px;
    word-wrap: break-word;
    position: relative;
    font-size: 14px;
}

.message.user .message-content {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.message.user .message-avatar {
    background: #667eea;
    color: white;
    order: 2;
}

.message.bot .message-avatar {
    background: #4facfe;
    color: white;
}

.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus {
    border-color: #4facfe;
}

.send-button {
    padding: 10px 16px;
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.2s;
}

.send-button:hover {
    transform: scale(1.05);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: none;
    margin-bottom: 12px;
    align-items: center;
}

.typing-dots {
    display: flex;
    gap: 3px;
    margin-left: 38px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4facfe;
    animation: typing 1.4s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.feedback-buttons {
    margin-top: 8px;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.feedback-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.feedback-btn:hover {
    background: #f0f0f0;
}

.feedback-btn.positive {
    color: #28a745;
    border-color: #28a745;
}

.feedback-btn.negative {
    color: #dc3545;
    border-color: #dc3545;
}

.welcome-message {
    text-align: center;
    padding: 20px 15px;
    color: #666;
}

.welcome-message h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.welcome-message p {
    font-size: 13px;
    margin-bottom: 15px;
}

.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    justify-content: center;
}

.quick-action {
    background: #e3f2fd;
    color: #1976d2;
    border: none;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.3s;
}

.quick-action:hover {
    background: #bbdefb;
}

/* Responsivo para mobile - LADO ESQUERDO */
@media (max-width: 768px) {
    .chat-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        bottom: 90px;
        left: 10px;  /* Mudado de right para left */
        right: auto; /* Remove o right */
    }
    
    .chat-toggle-btn {
        bottom: 15px;
        left: 15px;  /* Mudado de right para left */
        width: 55px;
        height: 55px;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 13px;
    }
}

/* Remover estilos do body que eram para página completa */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Removido: background, height, display, justify-content, align-items */
}